varargout
Variable-length output argument list
Syntax
Description
varargout
is an output variable in a
function definition statement that enables the function to return any number of
output arguments. Specify varargout
using lowercase characters,
and include it as the last output argument after any explicitly declared
outputs.
When the function executes, varargout
is a
1-by-N cell array, where N is the number
of outputs requested after the explicitly declared outputs. Inside of a function,
varargout
is an uninitialized variable and is not
preallocated.
Examples
Extended Capabilities
Version History
Introduced before R2006a