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

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

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