function [varargout] = all(varargin)
%ALL    True if all elements of a vector are nonzero.
%   For vectors, ALL(V) returns logical 1 (TRUE) if none of the elements 
%   of the vector are zero.  Otherwise it returns logical 0 (FALSE).  For 
%   matrices, ALL(X) operates on the columns of X, returning a row vector
%   of logical 1's and 0's. For N-D arrays, ALL(X) operates on the first
%   non-singleton dimension.
%
%   ALL(X,DIM) works down the dimension DIM.  For example, ALL(X,1)
%   works down the first dimension (the rows) of X.
%
%   See also ANY.

%   Copyright 1984-2003 The MathWorks, Inc.
%   $Revision: 5.11.4.3 $  $Date: 2004/12/24 20:46:20 $
%   Built-in function.

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