Clear Filters
Clear Filters

How can I fit a function to my data that consists of polynoms and gaussian?

2 views (last 30 days)
I have data that is pretty well explained by a gaussian fit. But some of the data can not be explained that way. So I want to extend the fit with a polynom. But I don't know how to do it with the curve fitting app or the statistics toolbox. Is there another possibility?

Answers (1)

KSSV
KSSV on 9 Mar 2017
  1 Comment
ga56
ga56 on 9 Mar 2017
but that only fits a polynom to my data. I want to combine gauss and polynoms. Something like that:
p(x)=p1x^n+p2x^n1+...+pnx+pn+1+a1*exp(-((x-b1)/c1)^2) + a2*exp(-((x-b2)/c2)^2)

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!