can anyone help to solve this matlab error of not enough input arguments?
1 view (last 30 days)
Niels on 27 Jan 2017
Edited: Niels on 27 Jan 2017
you changed the order of the input arguments again?... you have to decide yourself wether it shall be
or 2. case
to call your function type in your command window
ofc you have the set the variables w1, fs and frate to some values... thats what walter did: also in the command window
% then call your function like shown above or
in your picture you put a single number as input for w1, i thought you might expect w1 to be a matrix (since you check its size etc), walter generated a random matrix with size 50x864
More Answers (2)
Guillaume on 26 Jan 2017
Clearly, you've called the function without giving it any input. I.e, you should call the function with:
mfcc(somevariable, someothervariable, somethingelse)
Note that calling the first input input is a very bad idea as it overrides the matlab function with the same name. Give that first input a different name.
Also, I would strongly reconsider having global variables. Whatever time saving it may give you now, you'll likely spend twice as much debugging weird issues later on.