![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/735429/image.png)
Distribution plot of a 2D matrix
조회 수: 22 (최근 30일)
이전 댓글 표시
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
채택된 답변
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');
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/735429/image.png)
댓글 수: 2
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Histograms에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!