Mercurial > octave-nkf
comparison scripts/general/nargoutchk.m @ 8522:d65b33e55d40
nargchk.m: improve compatibility; new tests
author | Peter L. Sondergaard <peter@sonderport.dk> |
---|---|
date | Thu, 15 Jan 2009 01:06:06 -0500 |
parents | 1ce6460aebdf |
children | e07e93c04080 |
comparison
equal
deleted
inserted
replaced
8521:93cf10950334 | 8522:d65b33e55d40 |
---|---|
21 ## @deftypefnx {Function File} {@var{msgstr} =} nargoutchk (@var{minargs}, @var{maxargs}, @var{nargs}, "string") | 21 ## @deftypefnx {Function File} {@var{msgstr} =} nargoutchk (@var{minargs}, @var{maxargs}, @var{nargs}, "string") |
22 ## @deftypefnx {Function File} {@var{msgstruct} =} nargoutchk (@var{minargs}, @var{maxargs}, @var{nargs}, "struct") | 22 ## @deftypefnx {Function File} {@var{msgstruct} =} nargoutchk (@var{minargs}, @var{maxargs}, @var{nargs}, "struct") |
23 ## Return an appropriate error message string (or structure) if the | 23 ## Return an appropriate error message string (or structure) if the |
24 ## number of outputs requested is invalid. | 24 ## number of outputs requested is invalid. |
25 ## | 25 ## |
26 ## This is useful for checking to see that the number of arguments supplied | 26 ## This is useful for checking to see that the number of output |
27 ## to a function is within an acceptable range. | 27 ## arguments supplied to a function is within an acceptable range. |
28 ## @seealso{nargchk, error, nargout, nargin} | 28 ## @seealso{nargchk, error, nargout, nargin} |
29 ## @end deftypefn | 29 ## @end deftypefn |
30 | 30 |
31 ## Author: Bill Denney <bill@denney.ws> | 31 ## Author: Bill Denney <bill@denney.ws> |
32 | 32 |