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

1 次查看(过去 30 天)
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?

回答(1 个)

KSSV
KSSV 2017-3-9
  1 个评论
ga56
ga56 2017-3-9
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)

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Get Started with Curve Fitting Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by