Filter löschen
Filter löschen

Can I do a curve fit tool in a for loop?

2 Ansichten (letzte 30 Tage)
AAS
AAS am 8 Sep. 2020
Beantwortet: Ayush Gupta am 11 Sep. 2020
How can I get the a1,b1,c1 variables from the curve fit tool box for the gaussian func?

Akzeptierte Antwort

Ayush Gupta
Ayush Gupta am 11 Sep. 2020
The model coefficients for a Gaussian fit can be found out directly from the model. Refer to the following code on how to get the coefficients:
f = fit(x,y,'gauss2')
Also, to see how to use gaussian model to fit the data and some examples on how to use it here.

Weitere Antworten (0)

Kategorien

Mehr zu Linear and Nonlinear Regression finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by