function [varargout] = nargin(varargin)
%NARGIN Number of function input arguments.
%   Inside the body of a user-defined function, NARGIN returns
%   the number of input arguments that were used to call the
%   function. 
%
%   NARGIN('FUN') returns the number of declared inputs for the
%   M-file function FUN.  The number of arguments is negative if the
%   function has a variable number of input arguments.  FUN can be 
%   the name of a function, or a function handle that maps to a 
%   specific function.
%
%   See also NARGOUT, VARARGIN, NARGCHK, NARGOUTCHK, INPUTNAME, 
%      MFILENAME.

%   Copyright 1984-2004 The MathWorks, Inc. 
%   $Revision: 5.15.4.3 $  $Date: 2004/12/06 16:35:13 $
%   Built-in function.

if nargout == 0
  builtin('nargin', varargin{:});
else
  [varargout{1:nargout}] = builtin('nargin', varargin{:});
end
