Can I do a curve fit tool in a for loop?
11 views (last 30 days)
Ayush Gupta on 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.