Page 1 of 1

nargoutchk: Not enough input arguments

Posted: Wed Jul 12, 2017 11:34
by bserranito
Hi everybody,
I just download and install the CRP toolbox and i tried to familiarise with it to produce RP and CRP writing the following command :
a=sin((1:1000)*2*pi/67);
crp(a,'nonorm','euclidean')


I use an old Matlab version (7.5) so i download ans copy/paste the narginchk function from :https://gist.github.com/hagenw/5642886
as advised by th FAQ .

But a error message specified:

??? Error using ==> nargoutchk
Not enough input arguments.

Error in ==> crp at 201
nargoutchk(0,1
)


I really doesn't understand what prevent this very simple script to work.
If anyone can help me ...

Many thanks

Re: nargoutchk: Not enough input arguments

Posted: Thu Sep 7, 2017 09:36
by Norbert
Hi,

I think nargoutchk was introduced before MATLAB R2006a. But it seems that your MATLAB is too old and does not have this function. I suggest to write simple function called nargoutchk.m and put it into the CRPtool folder:

Code: Select all

function out = nargoutchk(in1,in2)
% do nothing
By doing this you only lose the check of the output arguments. Perhaps you will get weird errors in the case you use the wrong number of output arguments. But the rest of the toolbox will work fine.

I hope this helps.

Best
Norbert