how to find FWHM in histogram
27 ビュー (過去 30 日間)
古いコメントを表示
how can I evaluate the FWHM in a histogram with 2 peaks or more? I couldn'f find a built-in function...
thanks!
2 件のコメント
Rik
2020 年 5 月 28 日
Since there isn't a builtin function, you will have to write one yourself.
I would suggest starting with finding the peak.
採用された回答
Image Analyst
2020 年 5 月 29 日
Try this (untested):
counts = histcounts(data);
maxCounts = max(counts);
leftBin = find(counts > maxCounts/2, 1, 'first')
rightBin = find(counts > maxCounts/2, 1, 'last')
fwhm = rightBin - leftBin; % Add 1 if you want, depending on how you define width.
0 件のコメント
その他の回答 (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!