function msg = nargchk(low,high,number)
%NARGCHK Validate number of input arguments. 
%   MSG = NARGCHK(LOW,HIGH,N) returns an appropriate error message if
%   N is not between low and high. If it is, return empty matrix.
%
%   See also NARGOUTCHK, NARGIN, NARGOUT, INPUTNAME.

%   Copyright 1984-2000 The MathWorks, Inc. 
%   $Revision: 5.10 $  $Date: 2000/06/01 04:26:34 $

msg = [];
if (number < low)
    msg = 'Not enough input arguments.';
elseif (number > high)
    msg = 'Too many input arguments.';
end
