


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