Multiple fit Commands?

I am using the fit command from the Curve Fitting Toolbox to fit some data to a gaussian curve and store the root mean square error.
[model_formula,stats] = fit(x,y,'gauss1');
error = stats.rmse;
From What I can discern, the fit function from the Curve Fitting Toolbox uses a non-linear least squares regression method. I noticed that the Model-Based Calibration Toolbox also has a function that uses the same command (fit). Does the fit command from the Model-Based Calibration Toolbox uses the same method in the background? Would there be any benefit to using one of these fit commands over the other? Any knowledge or advice on this topic is appreciated - thanks.

Answers (1)

Walter Roberson
Walter Roberson on 21 Dec 2021

0 votes

There is some overlap in functionality, but the supported built-in models are fairly different.
For example the Curve Fitting Toolbox does not provide methods for Latin Hypercube sampling; https://www.mathworks.com/help/mbc/mbccommandline/mbcmodel.model.createdesign.html

Categories

Asked:

JB
on 21 Dec 2021

Answered:

on 21 Dec 2021

Community Treasure Hunt

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

Start Hunting!