MATLAB: Finding the average in a matrix

average matrix

Hi, I have a matrix 62599×60 double. I want the average of the 60 columns in every row. The output should be a 62599×1 matrix.

Best Answer

averagesAcrossColumns = mean(M, 2);