MATLAB: Mena of each row in matrix

mean

hi i have a 250*21 matrix. i want to get mean of this matrix in each row( result is 250*1 matrix). please help me.

Best Answer

myMatrix = rand(250,21);
m = mean( myMatrix, 2 );