iptchecknargin
Check number of input arguments
iptchecknargin will be removed in a future release. Use narginchk instead.
Description
iptchecknargin(
checks whether low,high,num_inputs,func_name)num_inputs is a valid number of input arguments and issues a
formatted error message if the number of input arguments is invalid.
If the number of input arguments is in the range [
lowhigh], theniptchecknarginreturns nothing.If the number of input argument is less than
lowor greater thanhigh, theniptchecknarginissues a formatted error message that includes information about the function name (func_name). This value is used only to create the error message, not to check whether the number of input arguments is valid.
Examples
Input Arguments
Version History
Introduced before R2006a
See Also
narginchk | iptcheckhandle | validateattributes | iptcheckmap | validatestring | iptnum2ordinal