


% -*- texinfo -*-
% @deftypefn {Function File} {@var{msgstr} =} nargchk (@var{minargs}, @var{maxargs}, @var{nargs})
% @deftypefnx {Function File} {@var{msgstr} =} nargchk (@var{minargs}, @var{maxargs}, @var{nargs}, 'string')
% @deftypefnx {Function File} {@var{msgstruct} =} nargchk (@var{minargs}, @var{maxargs}, @var{nargs}, 'struct')
% Return an appropriate error message string (or structure) if the
% number of inputs requested is invalid.
%
% This is useful for checking to see that the number of input arguments
% supplied to a function is within an acceptable range.
% @seealso{nargoutchk, error, nargin, nargout}
% @end deftypefn