how to find FWHM in histogram
30 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
sani
am 28 Mai 2020
Beantwortet: Image Analyst
am 29 Mai 2020
how can I evaluate the FWHM in a histogram with 2 peaks or more? I couldn'f find a built-in function...
thanks!
2 Kommentare
Rik
am 28 Mai 2020
Since there isn't a builtin function, you will have to write one yourself.
I would suggest starting with finding the peak.
Akzeptierte Antwort
Image Analyst
am 29 Mai 2020
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 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!