How to get Bin Edges at specific Value point (Maximum value) in histogram.
9 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Abdul Hannan Qureshi
am 28 Mär. 2024
Kommentiert: Dyuman Joshi
am 28 Mär. 2024
Hi,
I hava a simple query. I just want to know the BinEdges value at specific peak.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1654086/image.png)
So, I am only intrested in the Peak value and its Bin edges values. How I can get this.
H=histogram(Data);
HMAX=max(H.Values,[],"all");
How to get Bin edges at max value point,ie., 164209.
Kindly advise.
0 Kommentare
Akzeptierte Antwort
Dyuman Joshi
am 28 Mär. 2024
load('Data.mat')
H = histogram(DATA)
%Get the index of the max value alongside
[HMAX, idx] = max(H.Values,[],"all")
%USe the index to get the corresponding bin edges
H.BinEdges([idx idx+1])
2 Kommentare
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!