How to count average value from each row of matrix?

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개)

카테고리

도움말 센터File Exchange에서 Matrices and Arrays에 대해 자세히 알아보기

태그

질문:

2012년 5월 3일

Community Treasure Hunt

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

Start Hunting!

Translated by