How to calculate FWHM from a curve

6 次查看(过去 30 天)
Hi,
I have a curve (ive attached my plot) and i would like to find the fwhm of the larger peak? How would I do this?
Thanks in advance
  1 个评论
dpb
dpb 2019-8-7
Can't tell for sure -- is each peak a single slice in the Range dimension? So, iow, along that value the peak is actually just a vector.

请先登录,再进行评论。

回答(1 个)

Star Strider
Star Strider 2019-8-7
One approach is first to isolate the appropriate ‘Range’ value for your peaks of interest (so you have a vector that spans all values of ‘Along track’ for that single ‘Range’ value) then use findpeaks with at least the first three outputs to find the FWHM of every peak it identifies in the ‘widths’ output. See the Peak Prominences section of the documentation for details. You can use the value of the ‘pks’ output to identify the largest peak for each value of ‘Range’ that you select, and go from there.
Calculating the area of the peak would be relatively straightforward once you identify where the peak begins and ends. Calculating the area of the FWHM of the peak would likely be something of a challenge, depending on how you define that area.

产品


版本

R2019a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by