Programing language/Matlab2011. 4. 14. 03:51
 

 

 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

 

이 글은 스프링노트에서 작성되었습니다.

'Programing language > Matlab' 카테고리의 다른 글

randint  (0) 2011.04.14
AWGN채널  (0) 2011.02.10
randn  (0) 2011.02.09
분산(variance)과 표준편차(standard deviation) 구하기  (0) 2011.02.09


Posted by bayron