How to Calculate The Full Wave Half Maximum.
2 views (last 30 days)
Show older comments
Hi Everyone, anyone know how to write command to calculate the Full Wave Half Maxiumum(FWHM) on my data. As shown in figure attached.

Accepted Answer
KSSV
on 23 Jun 2021
Let (n.counts) be your data.
[max_counts,idx] = max(counts) ;
half_max_counts = max_counts/2 ;
idx = knnsearch(counts,half_max_counts) ;
FWHM = abs(diff(n(idx)))
You can inerpolate the data for better accuracy.
More Answers (0)
See Also
Categories
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!