Email: helpdesk@telkomuniversity.ac.id

This Portal for internal use only!

  • My Download
  • Checkout
Application Package Repository Telkom University
All Categories

All Categories

  • IBM
  • Visual Paradigm
  • Adobe
  • Google
  • Matlab
  • Microsoft
    • Microsoft Apps
    • Analytics
    • AI + Machine Learning
    • Compute
    • Database
    • Developer Tools
    • Internet Of Things
    • Learning Services
    • Middleware System
    • Networking
    • Operating System
    • Productivity Tools
    • Security
    • VLS
      • Office
      • Windows
  • Opensource
  • Wordpress
    • Plugin WP
    • Themes WP
  • Others

Search

0 Wishlist

Cart

Categories
  • Microsoft
    • Microsoft Apps
    • Office
    • Operating System
    • VLS
    • Developer Tools
    • Productivity Tools
    • Database
    • AI + Machine Learning
    • Middleware System
    • Learning Services
    • Analytics
    • Networking
    • Compute
    • Security
    • Internet Of Things
  • Adobe
  • Matlab
  • Google
  • Visual Paradigm
  • WordPress
    • Plugin WP
    • Themes WP
  • Opensource
  • Others
More Categories Less Categories
  • Get Pack
    • Product Category
    • Simple Product
    • Grouped Product
    • Variable Product
    • External Product
  • My Account
    • Download
    • Cart
    • Checkout
    • Login
  • About Us
    • Contact
    • Forum
    • Frequently Questions
    • Privacy Policy
  • Forum
    • News
      • Category
      • News Tag

iconTicket Service Desk

  • My Download
  • Checkout
Application Package Repository Telkom University
All Categories

All Categories

  • IBM
  • Visual Paradigm
  • Adobe
  • Google
  • Matlab
  • Microsoft
    • Microsoft Apps
    • Analytics
    • AI + Machine Learning
    • Compute
    • Database
    • Developer Tools
    • Internet Of Things
    • Learning Services
    • Middleware System
    • Networking
    • Operating System
    • Productivity Tools
    • Security
    • VLS
      • Office
      • Windows
  • Opensource
  • Wordpress
    • Plugin WP
    • Themes WP
  • Others

Search

0 Wishlist

Cart

Menu
  • Home
    • Download Application Package Repository Telkom University
    • Application Package Repository Telkom University
    • Download Official License Telkom University
    • Download Installer Application Pack
    • Product Category
    • Simple Product
    • Grouped Product
    • Variable Product
    • External Product
  • All Pack
    • Microsoft
      • Operating System
      • Productivity Tools
      • Developer Tools
      • Database
      • AI + Machine Learning
      • Middleware System
      • Networking
      • Compute
      • Security
      • Analytics
      • Internet Of Things
      • Learning Services
    • Microsoft Apps
      • VLS
    • Adobe
    • Matlab
    • WordPress
      • Themes WP
      • Plugin WP
    • Google
    • Opensource
    • Others
  • My account
    • Download
    • Get Pack
    • Cart
    • Checkout
  • News
    • Category
    • News Tag
  • Forum
  • About Us
    • Privacy Policy
    • Frequently Questions
    • Contact
Home/Matlab/Not recognising named input argument

Not recognising named input argument

PuTI / 2025-03-06
Not recognising named input argument
Matlab News

This is the head of my function:
function results = spectral_coi(seeds, labels, rr_k, d, n)

arguments
seeds cell % seeds for COI clusters
labels (:, 1) uint8 % labels ( x samples)
end
arguments (Repeating)
rr_k double {mustBeNumeric} % input arrays x k ( x samples x timepoints)
end
arguments
d.idx_seed logical {mustBeNumericOrLogical} = true % are seeds as indices (or in physical units)
d.output_type (1, 🙂 string …
{mustBeMember(d.output_type, {‘all’, ‘phase’, ‘power’, ‘spectral’})} …
= ‘all’
d.transform string …
{mustBeMember(d.transform, {‘native’, ‘fftw3’})}…
= ‘native’
d.verbosity uint8 = 0 % provide feedback?
d.z_pvl double = 0.05 % cluster pval

n.time (1, 🙂 double {mustBeNumeric} % timepoints for reference to seeds physical units
n.f_s double {mustBePositive} % sampling frequency, return normalized frequencies if not provided
n.lof double {mustBePositive} % lowest frequency to calculate (Hz)
n.hif double {mustBePositive} % highest frequency to calculate (Hz)
n.pl {mustBeInteger} % num permutations
end

I call it like this:
results = spectral_coi({[140, 9]}, stim, dat, "output_type", "phase", …
"idx_seed", false, …
"is_fbk", false, …
"transform", "native", …
"verbosity", 2, …
"time", time, "f_s", f_s, "hif", 15, "lof", 2, "pl", 2);

Yet rr_k is now
rr_k =

1×7 cell array

Columns 1 through 3

{1078×399 double} {[NaN]} {[NaN]}

Columns 4 through 7

{[NaN]} {[0]} {[NaN]} {[0]}

Suggesting that it has intepreted the inputs up until "transform" as a repeating input. Instead it should have ofcoursed recognised the named inputs like it did with everything afterwards. What is going on? Why start recognising inputs at "transform"?This is the head of my function:
function results = spectral_coi(seeds, labels, rr_k, d, n)

arguments
seeds cell % seeds for COI clusters
labels (:, 1) uint8 % labels ( x samples)
end
arguments (Repeating)
rr_k double {mustBeNumeric} % input arrays x k ( x samples x timepoints)
end
arguments
d.idx_seed logical {mustBeNumericOrLogical} = true % are seeds as indices (or in physical units)
d.output_type (1, 🙂 string …
{mustBeMember(d.output_type, {‘all’, ‘phase’, ‘power’, ‘spectral’})} …
= ‘all’
d.transform string …
{mustBeMember(d.transform, {‘native’, ‘fftw3’})}…
= ‘native’
d.verbosity uint8 = 0 % provide feedback?
d.z_pvl double = 0.05 % cluster pval

n.time (1, 🙂 double {mustBeNumeric} % timepoints for reference to seeds physical units
n.f_s double {mustBePositive} % sampling frequency, return normalized frequencies if not provided
n.lof double {mustBePositive} % lowest frequency to calculate (Hz)
n.hif double {mustBePositive} % highest frequency to calculate (Hz)
n.pl {mustBeInteger} % num permutations
end

I call it like this:
results = spectral_coi({[140, 9]}, stim, dat, "output_type", "phase", …
"idx_seed", false, …
"is_fbk", false, …
"transform", "native", …
"verbosity", 2, …
"time", time, "f_s", f_s, "hif", 15, "lof", 2, "pl", 2);

Yet rr_k is now
rr_k =

1×7 cell array

Columns 1 through 3

{1078×399 double} {[NaN]} {[NaN]}

Columns 4 through 7

{[NaN]} {[0]} {[NaN]} {[0]}

Suggesting that it has intepreted the inputs up until "transform" as a repeating input. Instead it should have ofcoursed recognised the named inputs like it did with everything afterwards. What is going on? Why start recognising inputs at "transform"? This is the head of my function:
function results = spectral_coi(seeds, labels, rr_k, d, n)

arguments
seeds cell % seeds for COI clusters
labels (:, 1) uint8 % labels ( x samples)
end
arguments (Repeating)
rr_k double {mustBeNumeric} % input arrays x k ( x samples x timepoints)
end
arguments
d.idx_seed logical {mustBeNumericOrLogical} = true % are seeds as indices (or in physical units)
d.output_type (1, 🙂 string …
{mustBeMember(d.output_type, {‘all’, ‘phase’, ‘power’, ‘spectral’})} …
= ‘all’
d.transform string …
{mustBeMember(d.transform, {‘native’, ‘fftw3’})}…
= ‘native’
d.verbosity uint8 = 0 % provide feedback?
d.z_pvl double = 0.05 % cluster pval

n.time (1, 🙂 double {mustBeNumeric} % timepoints for reference to seeds physical units
n.f_s double {mustBePositive} % sampling frequency, return normalized frequencies if not provided
n.lof double {mustBePositive} % lowest frequency to calculate (Hz)
n.hif double {mustBePositive} % highest frequency to calculate (Hz)
n.pl {mustBeInteger} % num permutations
end

I call it like this:
results = spectral_coi({[140, 9]}, stim, dat, "output_type", "phase", …
"idx_seed", false, …
"is_fbk", false, …
"transform", "native", …
"verbosity", 2, …
"time", time, "f_s", f_s, "hif", 15, "lof", 2, "pl", 2);

Yet rr_k is now
rr_k =

1×7 cell array

Columns 1 through 3

{1078×399 double} {[NaN]} {[NaN]}

Columns 4 through 7

{[NaN]} {[0]} {[NaN]} {[0]}

Suggesting that it has intepreted the inputs up until "transform" as a repeating input. Instead it should have ofcoursed recognised the named inputs like it did with everything afterwards. What is going on? Why start recognising inputs at "transform"? matlab function MATLAB Answers — New Questions

​

Tags: matlab

Share this!

Related posts

Warning: Error updating FunctionLine in using fplot
2025-05-12

Warning: Error updating FunctionLine in using fplot

Solid creation Simulink, simscape multibody: stuck in loading
2025-05-12

Solid creation Simulink, simscape multibody: stuck in loading

Issues with EMG Signal Acquisition via Simulink Desktop Real-Time (SDRT) and DAQ Board Usage
2025-05-12

Issues with EMG Signal Acquisition via Simulink Desktop Real-Time (SDRT) and DAQ Board Usage

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Search

Categories

  • Matlab
  • Microsoft
  • News
  • Other
Application Package Repository Telkom University

Tags

matlab microsoft opensources
Application Package Download License

Application Package Download License

Adobe
Google for Education
IBM
Matlab
Microsoft
Wordpress
Visual Paradigm
Opensource

Sign Up For Newsletters

Be the First to Know. Sign up for newsletter today

Application Package Repository Telkom University

Portal Application Package Repository Telkom University, for internal use only, empower civitas academica in study and research.

Information

  • Telkom University
  • About Us
  • Contact
  • Forum Discussion
  • FAQ
  • Helpdesk Ticket

Contact Us

  • Ask: Any question please read FAQ
  • Mail: helpdesk@telkomuniversity.ac.id
  • Call: +62 823-1994-9941
  • WA: +62 823-1994-9943
  • Site: Gedung Panambulai. Jl. Telekomunikasi

Copyright © Telkom University. All Rights Reserved. ch

  • FAQ
  • Privacy Policy
  • Term

This Application Package for internal Telkom University only (students and employee). Chiers... Dismiss