Input and Output Arguments

Support variable length argument lists, check arguments


nargin Number of function input arguments
nargout Number of function output arguments
varargin Variable-length input argument list
varargout Variable-length output argument list
narginchk Validate number of input arguments
nargoutchk Validate number of output arguments
validateattributes Check validity of array
validatestring Check validity of text string
inputParser Parse function inputs
inputname Variable name of function input

Was this topic helpful?