Plotting multiple probability distribution plots in succession
9 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Lewis S
am 29 Mai 2020
Kommentiert: Ameer Hamza
am 30 Mai 2020
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.
0 Kommentare
Akzeptierte Antwort
Ameer Hamza
am 29 Mai 2020
Bearbeitet: Ameer Hamza
am 29 Mai 2020
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 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Data Distribution Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!