![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/735429/image.png)
Distribution plot of a 2D matrix
13 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Iugo
am 11 Sep. 2021
Kommentiert: Image Analyst
am 11 Sep. 2021
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!
0 Kommentare
Akzeptierte Antwort
Image Analyst
am 11 Sep. 2021
Bearbeitet: Image Analyst
am 11 Sep. 2021
Did you try histogram(data)?
data = randn(450,116,116); % Sample data
histogram(data, 'EdgeColor', 'b', 'FaceColor', 'b');
grid on;
xlabel('Value');
ylabel('Count');
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/735429/image.png)
2 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Histograms 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!