Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function
varargout
arbitrarily long list of output arguments
Description
A function whose output argument list ends with
varargout
may be called with more output arguments
than indicated in the output argument list. The Left-Hand-Side output arguments passed
at calling time from the varargout
keyword onwards are extracted
out of the varargout
list defined in the function.
varargout = function ex()
may be called with any
number of output arguments. Within function ex
output
arguments may be stored in varargout(i)
.
[X1,...,Xn,varargout] = function ex()
may also be
used. In this case the Xi
variables must be assigned in
the function as well as varargout(i)
.
argn(1)
returns the actual total number of output arguments.
varargout is by default initialized to list() . |
Examples
See also
History
Version | Description |
6.0.0 | varargout is now initialized to list() by default. |
Report an issue | ||
<< varargin | Fonctions avancées | whereis >> |