MATLAB Answers

mena of each row in matrix

3 views (last 30 days)
fereshte
fereshte on 17 Nov 2014
Commented: fereshte on 17 Nov 2014
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.

  0 Comments

Sign in to comment.

Accepted Answer

Adam
Adam on 17 Nov 2014
myMatrix = rand(250,21);
m = mean( myMatrix, 2 );

  1 Comment

Sign in to comment.

More Answers (0)

Sign in to answer this question.

Tags