mena of each row in matrix

2 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.

Accepted Answer

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

More Answers (0)

Categories

Find more on Creating and Concatenating Matrices in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!