<< namelengthmax | Core | narginchk >> |
R = nargin() |
R = nargin(function_name) |
R = nargin(function_handle) |
a string: function name
a function handle
an integer value: number of input argument
nargin returns the number of input arguments of an function.
If the last input argument of the function is varargin the returned value is negative.
With an macro function:
nargin('getfield')
With an builtin function:
nargin('cos')
Version | Description |
---|---|
1.0.0 | initial version |
Allan CORNET