f(l) yl=xl+x2; l--error " undefined variable x2 at line 2 of function f Here x2 is referred to but was not defined in the calling list. The attempt at execution produces an error. 2) y2 • 3. yl • 1. In some cases it is of use to be able to create functions that can accept an unknown number of input arguments or return an unknown number of output arguments. For that you can use the keywords varargin for input and varargout for output.
Engineering and Scientific Computing with Scilab by Claude Gomez, C. Bunks, J.-P. Chancelier, F. Delebecque, M. Goursat, R. Nikoukhah, S. Steer