function x = nnsumr(x)
%NNSUMR Sums each row of a matrix.
%	
%	This function is obselete.
%	Use SUM(M,1).

nntobsf('nnsumr','Use SUM(M,1).')

%	
%	*WARNING*: This function is undocumented as it may be altered
%	at any time in the future without warning.

% NNSUMR(X)
%   X - Matrix of column vectors: [C1 C2 ... CN].
% Returns sum of each column.
%
% SUMROW differs from SUM by leaving column vectors unchanged.
%
% EXAMPLE: x = rands(4,5)
%          y = nnsumr(x)
%
% SEE ALSO: nnsumc

% Mark Beale, 12-15-93
% Copyright (c) 1992-1998 by The MathWorks, Inc.
% $Revision: 1.7 $  $Date: 1998/06/11 17:22:36 $

[xr,xc] = size(x);
if xc > 1
  x = sum(x')';
end
