MATLAB: MAtrix

matrix

Hi there I have a matrix of size 298 x 19. I want to have just one column, so 289×1, but it to be the addition of the row.
So I want to add all the columns to turn it to 298×1.

Best Answer

Sum along dimension 2 (columns):
sum(A,2)