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 NARGIN, NARGOUT, INPUTNAME.

%   Copyright (c) 1984-98 by The MathWorks, Inc.
%   $Revision: 5.7 $  $Date: 1997/11/21 23:37:59 $

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