%SUM Sum of elements.
%   For vectors, SUM(X) is the sum of the elements of X. For
%   matrices, SUM(X) is a row vector with the sum over each
%   column. For N-D arrays, SUM(X) operates along the first
%   non-singleton dimension.
%
%   SUM(X,DIM) sums along the dimension DIM. 
%
%   Example: If X = [0 1 2
%                    3 4 5]
%
%   then sum(X,1) is [3 5 7] and sum(X,2) is [ 3
%                                             12];
%
%   See also PROD, CUMSUM, DIFF.

%   Copyright (c) 1984-98 by The MathWorks, Inc.
%   $Revision: 5.10 $  $Date: 1997/11/21 23:24:10 $

%   Built-in function.
