How to calculate FWHM for multiple gaussian curves in a plot ?

10 views (last 30 days)
Hi all.
I have a plot with 10 gaussian curves. I wish to find the full width at half maximum (FWHM) and peaks of each curves and compare. There are codes already existing for Gaussian curves. But, how to compare for various curves in a single plot and compare?
  2 Comments
Massimo Zanetti
Massimo Zanetti on 26 Sep 2016
Edited: Massimo Zanetti on 26 Sep 2016
For a Gaussian distributed random variable the FWHM is 2.355*SIGMA, indepentent of the value of MU. What do you mean by "compare for various curves in a single plot"? Do you mean you want to plot also the FWHM for each curve? Do you already have the parameters of the 10 Gaussian samples or not?
Tusharkumar Sorathiya
Tusharkumar Sorathiya on 14 Sep 2018
Hello Massimo, it would be really helpful for my thesis if you can have a look at my query which sounds same to Vasanth's question. I have 10 gaussians f1...f10(you can run text file in matlab)and "f" is sum of all. QUE_1)I wanted to find fwhm and plot fwhm lines for each 10 curves. QUE_2) I have used findpeaks function to detect the peaks of all curves,but problem i am facing now is ,it can detect the peak but peak does not move when i change the mean values of one or more curves. QUE_3) How to calculate the fwhm and plot it, when I see two or more curves as a final output (f) QUE_4) how I can change the x and y axis values to some wavelength(x) and reflectivity(y) values. I tried to change X= -1550:0.1:-1545(to see x axis as a nano meter values)but it changes the curves,is there any way to relate x axis as wavelength values without affecting bell curves?
tx in advance, anticipating help indeed!

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!