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
nargoutchk: Not enough input arguments
-
- Junior
- Posts: 2
- Joined: Wed Jul 12, 2017 11:19
- Affiliation (Univ., Inst., Dept.): Toulon University
- Location: Toulon, South of France
- Research field: Marine Biology
- Norbert
- Expert
- Posts: 196
- Joined: Wed Jan 4, 2006 11:03
- Affiliation (Univ., Inst., Dept.): Potsdam Institute for Climate Impact Research, Germany
- Location: Potsdam, Germany
- Location: Potsdam Institute for Climate Impact Research, Germany
Re: nargoutchk: Not enough input arguments
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:
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
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
I hope this helps.
Best
Norbert