nargoutchk: Not enough input arguments

Bugs found in software.

nargoutchk: Not enough input arguments

Postby bserranito » Wed Jul 12, 2017 11:34

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 :

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

But a error message specified:

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

Error in ==> crp at 201

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

Many thanks
Posts: 2
Joined: Wed Jul 12, 2017 11:19

Re: nargoutchk: Not enough input arguments

Postby Norbert » Thu Sep 7, 2017 09:36


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.

User avatar
Posts: 173
Joined: Wed Jan 4, 2006 11:03
Location: Potsdam Institute for Climate Impact Research, Germany

Return to Bugs

Who is online

Users browsing this forum: No registered users and 1 guest