how do i find a mean value from a 10X10 matrix ?
조회 수: 3 (최근 30일)
이전 댓글 표시
hi can any one help me on how to fine the mean value from a 10x10 matrix ?
댓글 수: 0
답변 (1개)
Guillaume
2014년 10월 23일
편집: Guillaume
2014년 10월 23일
Have you followed matlab's getting started tutorial. Seriously, this is such a basic question and mean is even covered in the tutorial.
댓글 수: 2
Guillaume
2014년 10월 23일
Well, follow the tutorial I linked, it's very easy to follow and will give you the basis necessary.
You'll want to transform your matrix into a vector (otherwise you get the mean of each column), so the answer is simply:
m = mean(matrix(:));
참고 항목
카테고리
Help Center 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!