Need help trying to do a Gaussian fit with 3 peaks
6 views (last 30 days)
Show older comments
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
0 Comments
Answers (1)
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.
0 Comments
See Also
Categories
Find more on Fit Postprocessing in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!