How to calculate FWHM on the graph
Afficher commentaires plus anciens
Dear All,
I have graph attached.
Anyone can help me to calculate the FWHM based on my graph attached?
Réponse acceptée
Plus de réponses (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)
Catégories
En savoir plus sur Discrete Data Plots dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

