nargout - Number of output arguments for System object - MATLAB (original) (raw)
Main Content
Number of output arguments for System object
Syntax
Description
[numOutputs](#d126e2109406) = nargout([obj](#d126e2109377))
returns the number of output arguments that are required by the obj
algorithm definition. This function is a System objectâ„¢ extension of the general nargout function.
If the System object does not override getNumOutputsImpl
and thestepImpl
signature contains varargout
, then nargout returns the negative of the number of outputs. For example, ifstepImpl
declares outputs y
,z
, and varargout
, thennargout(obj)
returns -3
.
nargout
returns the number of output arguments specified in the call to the currently executing System object. Use this syntax in the body of a System object only.
Input Arguments
Output Arguments
This argument represents the number of outputs needed to call the System object.
Version History
Introduced in R2018a