Check for correct number of input arguments.
Generate an error message if the number of arguments in the calling function is outside the range minargs and maxargs. Otherwise, do nothing.
Both minargs and maxargs must be scalar numeric values. Zero, Inf, and negative values are all allowed, and minargs and maxargs may be equal.
Note that this function evaluates nargin
on the caller.
See also: nargoutchk, error, nargout, nargin.
Package: octave