This question is closed. Reopen it to edit or answer.
In any matrix, how to generated by sum' same along rows
1 view (last 30 days)
Star Strider on 21 Feb 2017
The column dimension is the second dimension (the row dimension is the first, and the default in a matrix), so to sum the rows of matrix ‘A’, the code is:
A_row_sum = sum(A, 2);