MATLAB Programming Fundamentals - MathWorks

(やまだぃちぅ) #1

In this case, varargin{1} corresponds to the third input passed to the function, and
nargin returns length(varargin) + 2.


See Also


nargin | varargin


Related Examples



  • “Access Data in Cell Array” on page 12-5


More About



  • “Argument Checking in Nested Functions” on page 21-11

  • “Comma-Separated Lists” on page 2-78


See Also
Free download pdf