How to fit a gaussian curve over multiple peaks.

5 次查看(过去 30 天)
Hello everybody,
I am new in this community, and a newbie with MATLAB so please forgive and silly questions I might have. :)
Now to my problem: I have a plot that has many gaussian plots in varying intensities. I want to fit a Gaussian plot over all these many plots. Is there a way to make this automatic? If not, how would you suggest that I do it? I thought of just finding the value of each one of the peaks of the plots and fitting a gaussian throught that but I am not sure how accurate that would be.
Thanks a lot in advance!!
  1 个评论
dpb
dpb 2014-9-21
I'd start with just using all the points you have to generate the individuals into a single vector and fit it...

请先登录,再进行评论。

采纳的回答

Star Strider
Star Strider 2014-9-21
If I understand you correctly, you want to fit one Gaussian over the peaks of all the individual Gaussian peaks. If you have the Signal Processing Toolbox, use the findpeaks function to determine the coordinates of the maxima of the individual peaks, then fit those values. You will likely have to experiment with the findpeaks parameters to find only the peaks of the individual Gaussians, and not the peaks of the noise as well.
  2 个评论
zahra safaei
zahra safaei 2017-10-23
Hi,
I have an opposite question! I have one Gaussian peak, which I would like to divide it to more peaks and calculate the amount of partial peak. may you please advise me?
Image Analyst
Image Analyst 2017-10-23
Look up "Gaussian Mixture Models" in the help, if you have the Statistics and Machine Learning Toolbox.

请先登录,再进行评论。

更多回答(0 个)

Community Treasure Hunt

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

Start Hunting!

Translated by