Hi, I'm new to matlab and wanted to find the mean of all the values in my matrix/data set and was wondering how I would do this?
1 回表示 (過去 30 日間)
古いコメントを表示
This
mean(a(:))
has been suggested but it has not worked for me.
0 件のコメント
採用された回答
Mathias Andersen
2020 年 5 月 16 日
See the documentation for the mean command here
So if you want the mean of an entire matrix write the following
mean(a,'all')
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Shifting and Sorting Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!