R = nargin()
R = nargin(function_name)
R = nargin(function_handle)
| Parameter | Description |
|---|---|
| function_name | a string: function name |
| function_handle | a function handle |
| Parameter | Description |
|---|---|
| R | 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.
nargin('getfield')
nargin('cos')
| Version | Description |
|---|---|
| 1.0.0 | initial version |