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

3 vues (au cours des 30 derniers jours)
ga56
ga56 le 9 Mar 2017
Commenté : ga56 le 9 Mar 2017
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?

Réponses (1)

KSSV
KSSV le 9 Mar 2017
  1 commentaire
ga56
ga56 le 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)

Connectez-vous pour commenter.

Catégories

En savoir plus sur Linear and Nonlinear Regression dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by