<< narginchk | Core | nargoutchk >> |
R = nargout() |
R = nargout(function_name) |
R = nargout(function_handle) |
a string: function name
a function handle
an integer value: number of output argument
nargout returns the number of output arguments of an function.
If the last output argument of the function is varargout the returned value is negative.
With an macro function:
nargout('cellstr')
With an builtin function:
nargout('cos')
Version | Description |
---|---|
1.0.0 | initial version |
Allan CORNET