フィルターのクリア

Distribution plot of a 2D matrix

22 ビュー (過去 30 日間)
Iugo
Iugo 2021 年 9 月 11 日
コメント済み: Image Analyst 2021 年 9 月 11 日
Hello everyone!
I have a matrix with this size (450,116,116), where the 450 is referred to the number of subjects of the data.
I want to see the distribution plot (in an histogram) for all the 450 subjects but in the same plot. I was able to do this for each individual subject, but I'm not finding a way to do it for all the 450 subjects in the same plot...
How can I do such distribution?
Thanks in advance!

採用された回答

Image Analyst
Image Analyst 2021 年 9 月 11 日
編集済み: Image Analyst 2021 年 9 月 11 日
Did you try histogram(data)?
data = randn(450,116,116); % Sample data
histogram(data, 'EdgeColor', 'b', 'FaceColor', 'b');
grid on;
xlabel('Value');
ylabel('Count');
  2 件のコメント
Iugo
Iugo 2021 年 9 月 11 日
I taught I had to loop through the subjects... lot easier! Thanks @Image Analyst !!
Image Analyst
Image Analyst 2021 年 9 月 11 日
You can do that if you want 450 histograms - one for each subject.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeHistograms についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by