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.
답변 (1개)
Walter Roberson
2021년 12월 21일
0 개 추천
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
카테고리
도움말 센터 및 File Exchange에서 Linear and Nonlinear Regression에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!