FUNCTION REFERENCE

nargchk

Return a diagnostic for an input count outside a range.

Return a diagnostic for an input count outside a range.

Syntax

message = nargchk(minimum, maximum, count [, 'string'|'struct'])

Example

warning('off','all'); nargchk(1,2,3)   % Too many input arguments.

Differences from MATLAB: Emits MATLAB's deprecation warning.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.