How to get multiple groups plotted with histogram?
Ältere Kommentare anzeigen
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 Kommentar
Azzi Abdelmalek
am 7 Jun. 2016
This is not clear
Akzeptierte Antwort
Weitere Antworten (1)
Image Analyst
am 7 Jun. 2016
0 Stimmen
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.
Kategorien
Mehr zu Data Distribution Plots finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
