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!
