Plotting multiple probability distribution plots in succession

Hi everybody
I have a 24 by 200 set data. This represents the 24 hours of the day and 200 represents different entries for each of those days.
I would like to show a grid with a subplot showing the probability distribution for each of the hours. How can I do this without using the dfittool?
Thank you.

 採用された回答

Ameer Hamza
Ameer Hamza 2020 年 5 月 29 日
編集済み: Ameer Hamza 2020 年 5 月 29 日

1 投票

Something like this
M = rand(24, 200); % your matrix
figure;
for i=1:size(M,1)
x = M(i, :);
subplot(6, 4, i);
histogram(x, 'Normalization', 'pdf')
end

2 件のコメント

Lewis S
Lewis S 2020 年 5 月 30 日
Thnk you Ameer. This works!!
Ameer Hamza
Ameer Hamza 2020 年 5 月 30 日
I am glad to be of help!

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeData Distribution Plots についてさらに検索

製品

リリース

R2020a

質問済み:

2020 年 5 月 29 日

コメント済み:

2020 年 5 月 30 日

Community Treasure Hunt

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

Start Hunting!

Translated by