How to get multiple groups plotted with histogram?
이전 댓글 표시
With hist, the columns of an input matrix would be interpreted as different data sets and the frequency bars grouped per bin:
hist(rand(20,4))

How to get this behaviour with the new histogram function that is supposed to supercede hist?
histogram(rand(20,4))

채택된 답변
추가 답변 (1개)
Image Analyst
2016년 6월 7일
0 개 추천
It doesn't look like histogram() or histcounts() processes matrices in columns anymore. So you'd have to do the overlapping bars like in the help, rather than the side-by-side bars.
카테고리
도움말 센터 및 File Exchange에서 Data Distribution Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
