How to calculate FWHM on the graph
Ältere Kommentare anzeigen
Dear All,
I have graph attached.
Anyone can help me to calculate the FWHM based on my graph attached?
Akzeptierte Antwort
Weitere Antworten (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)
Kategorien
Mehr zu Discrete Data Plots finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

