msg = nargchk(low,high,number)
msg = nargchk(low,high,number)
returns an error message if number
is less than low
or greater than high
. If number
is between low
and high
(inclusive), nargchk
returns an empty matrix.
Use the function nargin
to determine the number of input arguments passed to a function.
nargin
,nargout
(c) Copyright 1994 by The MathWorks, Inc.