1
varargin Scilab Group Scilab keyword varargin
3
varargin - variable numbers of arguments in an input argument list
6
varargin must be the rightmost argument of the function definition input
10
A function whose input argument list contains varargin can be called
11
with more input arguments than indicated in the input argument list. The
12
calling arguments passed form varargin keyword onwards may then be
13
retrieved within the function in a list named varargin.
15
Suppose that varargin keyword is the n th argument of the formal input
16
argument list, then if the function is called with less than n-1 input
17
arguments the varargin list is not defined, if the function is called
18
with n-1 arguments then varargin list is an empty list. y = function
19
ex(varargin) may be called with any number of input arguments. Within
20
function ex input arguments may be retrieved in varargin(i)
24
Named argument syntax like foo(...,key=value) is incompatible with the
28
deff('exampl(a,varargin)',['[lhs,rhs]=argn(0)'
29
'if rhs>=1 then disp(varargin),end'])
36
function, varargout, list