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

8 ビュー (過去 30 日間)
AAS
AAS 2020 年 9 月 8 日
回答済み: Ayush Gupta 2020 年 9 月 11 日
How can I get the a1,b1,c1 variables from the curve fit tool box for the gaussian func?
  1 件のコメント
KSSV
KSSV 2020 年 9 月 8 日
You can do it by calling commands. Read here https://www.mathworks.com/help/curvefit/fit.html

サインインしてコメントする。

採用された回答

Ayush Gupta
Ayush Gupta 2020 年 9 月 11 日
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.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLinear and Nonlinear Regression についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by