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 件のコメント
Azzi Abdelmalek
2016 年 6 月 7 日
This is not clear
採用された回答
その他の回答 (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!
