Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
NCTM or The Math Forum.



Re: summation of matrix rows
Posted:
Jun 17, 2006 3:37 PM


In article <ef39a1a.1@webcrossing.raydaftYaTP>, "Huey Lewis" <J_paulett@hotmail.com> wrote:
> I am trying to find the summation of each row of a Matrix A. Is > there any way I can change the rows to columns and use the sum > function?  Two ways:
s = sum(A,2) ;
Or:
s = sum(A.').' ;
Each method will produce a column vector of row sums.
(Remove "xyzzy" and ".invalid" to send me email.) Roger Stafford



