How to get Bin Edges at specific Value point (Maximum value) in histogram.
7 次查看(过去 30 天)
显示 更早的评论
Hi,
I hava a simple query. I just want to know the BinEdges value at specific peak.
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 个评论
采纳的回答
Dyuman Joshi
2024-3-28
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])
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Histograms 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!