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])
댓글 수: 2
추가 답변 (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!