MATLAB Answers

Isti
0

How to count average value from each row of matrix?

Asked by Isti
on 3 May 2012
I have a matrix A like this:
A
2 1 4
4 7 6
9 1 2
7 5 4
Then, i wanto to count average value from each row. so the result will be vector Y like this: Y:
2.3
5.6
4.0
5.3
What to do? Thanks before :')

  0 Comments

Sign in to comment.

1 Answer

Junaid 님의 답변 3 May 2012
 채택된 답변

mean(A, 2)
will you average by row.

  0 Comments

Sign in to comment.