How to get the limits of the highest frequency bin in a histogram?
22 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Sarah A
am 24 Nov. 2019
Kommentiert: Sarah A
am 24 Nov. 2019
Hello,
Is it possible to get the limits of the highest frequency bin in a histogram?. For example, in the attached figure, I have a histogram of three bins where the width of each bin is 1 and the bin of highest frequency is the second bin which is [0,1]. So, I need to write lines of code that find the highest frequency range of values which is here [0,1].
Regards,
0 Kommentare
Akzeptierte Antwort
KALYAN ACHARJYA
am 24 Nov. 2019
[counts,binLocations]=hist(data);
%find the bins of max(counts)
Then previous value & next value are limits
Weitere Antworten (0)
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!