FUNCTION REFERENCE
varargin
Variable-length input argument list.
Variable-length input argument list.
Syntax
function f(varargin)As the last input of a function, varargin collects the remaining inputs in a 1-by-n cell array; nargin counts them too.
Example
f = @(varargin) numel(varargin); f(1, 'a', [2 3]) % 3Differences from MATLAB: None known.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.