Change histogram to more bars
18 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Mustafa Vural
am 25 Okt. 2020
Kommentiert: Mustafa Vural
am 25 Okt. 2020
I am generating random numbers. The histogram has a sample size of 20 but only 5 bars. How can I control the bar numbers?

0 Kommentare
Akzeptierte Antwort
Sindar
am 25 Okt. 2020
histogram accepts the number of bins as a second argument:
x = randn(1000,1);
nbins = 25;
h = histogram(x,nbins)
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu Histograms finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!