# nargchk

## Purpose

Check number of input arguments.

## Synopsis

    msg = nargchk(low,high,number)

## Description

`msg = nargchk(low,high,number)` returns an error message if `number` is less than `low` or greater than `high`. If `number` is between `low` and `high` (inclusive), `nargchk` returns an empty matrix.

Use the function `nargin` to determine the number of input arguments passed to a function.

## See Also

    nargin, nargout

(c) Copyright 1994 by The MathWorks, Inc.