Home > freetb4matlab > general > nargchk.m

nargchk

PURPOSE ^

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

SYNOPSIS ^

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

DESCRIPTION ^

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

CROSS-REFERENCE INFORMATION ^

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