Histogram with log Bin width
85 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Markus Similä
am 3 Aug. 2020
Bearbeitet: Markus Similä
am 6 Aug. 2020
I have a single column vector with values ranging from 0 to about 400 000.
I need to make a histogram from this data, which has a logarithmically changing bin size.
The height values in each bin should also be divided with the corresponding bins width.
How can this be done?
Advice would be appreciated,
Thanks
0 Kommentare
Akzeptierte Antwort
Sean de Wolski
am 3 Aug. 2020
x = rand(1,10000)*100000;
bins = 10.^(0:5);
histogram(x, bins);
set(gca, "XScale", "log")
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!