I know this is an elementary question but I simply can't find an answer.
I have a matrix and would like to add each column to get its sum.
Adding should be done for each row.
I've tried rowsums but that only works for arrays.
Is there an easy way to do this for matrices?
An example:
1 2
1 4
3 4
4 5
5 5
Desired output:
3
4
7
9
10