nargin은 함수에 사용된 입력 매개변수의 수를 나타낸다.
|
NARGIN Number of function input arguments.
Inside the body of a user-defined function, NARGIN returns
the number of input arguments that were used to call the
function.
NARGIN(FUN) returns the number of declared inputs for the
M-file function FUN. The number of arguments is negative if the
function has a variable number of input arguments. FUN can be
a function handle that maps to a specific function, or a string
containing the name of that function.
See also nargout, varargin, nargchk, nargoutchk, inputname,
mfilename.
Overloaded methods:
inline/nargin
fittype/nargin
Reference page in Help browser
doc nargin
|
이 글은 스프링노트에서 작성되었습니다.