How to calculate FWHM from a curve

6 views (last 30 days)
KatherineS
KatherineS on 7 Aug 2019
Answered: Star Strider on 7 Aug 2019
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 Comment
dpb
dpb on 7 Aug 2019
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.

Sign in to comment.

Answers (1)

Star Strider
Star Strider on 7 Aug 2019
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.

Products


Release

R2019a

Community Treasure Hunt

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

Start Hunting!