Home > freetb4matlab > general > nargoutchk.m

nargoutchk

PURPOSE ^

% Return an appropriate error message string (or structure) if the

SYNOPSIS ^

function msg = nargoutchk (mina, maxa, narg, outtype)

DESCRIPTION ^

% -*- 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

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Fri 22-May-2009 15:13:00 by m2html © 2003