How to calculate FWHM on the graph
Show older comments
Dear All,
I have graph attached.
Anyone can help me to calculate the FWHM based on my graph attached?
Accepted Answer
More Answers (1)
The findpeaks function in Signal Processing Toolbox can be used to determine the width (full width) of the detected peaks. By default, the peak widths (output w in the example below) are calculated at half prominence. You can also specify the reference height for peak width measurements, WidthReference name-value pair, as "halfprom" or "halfheight".
x = linspace(-5, 5, 101);
y = exp(-x.^2);
[pks,locs,w,p] = findpeaks(y,x)
Categories
Find more on Discrete Data Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
