Finding Statistics of a Matrix Help!!!
5 ビュー (過去 30 日間)
古いコメントを表示
Hello, currently I have a 1024x1024 array in matlab that I have loaded in from a .txt file:
a = load('File.txt');
I want to find the mean, standard deviation, and the quartile ranges for this array. So far, I have only come across commands that return the average of each column or row, however I want to get basic statistical information when considering every element in the array. Is there a simple command or function that will just spit all this information out for me in a table? Any help is greatly appreciated.
0 件のコメント
採用された回答
Star Strider
2018 年 2 月 27 日
Force the array into a vector, then use mean, std, the appropriate version of iqr, and the rest.
Example —
a_mean = mean(a(:));
and so for the other functions.
2 件のコメント
Star Strider
2018 年 2 月 27 日
As always, my pleasure!
I addressed that in my Answer to your follow-up Question.
その他の回答 (1 件)
David Fletcher
2018 年 2 月 27 日
You could reshape the matrix into a vector, then apply the functions to the vector
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Logical についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!