Need help trying to do a Gaussian fit with 3 peaks

8 views (last 30 days)
I am working on some data, my instructor has asked me to fit Gaussian curve( y= a*exp(-((x-b)/c)^2) ) in a way (see attached file), I tried using the curve fitting app in Matlab2014b, it does give me 3 different values for parameters a,b,c but the value for parameter comes out to be negative. Is there any way I can fit the Gaussian in the curve? I have attached the data and the intended result plot.
Any help is appreciated

Answers (1)

the cyclist
the cyclist on 25 Jun 2015
If you want to fit your data to the sum of three different gaussians, that is what is known as a gaussian mixture model. Use fitgmdist.

Products

Community Treasure Hunt

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

Start Hunting!