MATLAB: Adding of numbers with respect to row

matrix addition

how to add numbers in a matrix with respect to row and display the value.

Best Answer

sum(TheMatrix, 2)