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 で Get Started with MATLAB についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!