MATLAB: Number of input parameters of a function.

MATLABmatlab function

If you have a function's handle,
Is there any way to figure out how many input parameters it expects in the function's signature?
Even ugly hacky ways are fine.
-Milad

Best Answer

nargin(FunctionHandle)