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

조회 수: 17(최근 30일)
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 2020년 9월 8일
You can do it by calling commands. Read here

댓글을 달려면 로그인하십시오.

채택된 답변

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개)


Community Treasure Hunt

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

Start Hunting!

Translated by