Question: Sum the elements of a row in a matrix to get a column vector

If i had a matrix such as:

        3        3        3

M:=  3        3        3

        3        3        3

How would i sum each element in a row to get a column vector such as

         9

V:=   9

         9

 

any help appreciated! Thank you!

Please Wait...