Difference between cftool gui output and and createFit function output

Consider a pair of x and y data that I want to fit a function to.
One can use the cftool (Curve Fitting) app to read out the fit results together with the goodness of fit inside the app window, or one finds a fit using the "command line mehtod", with createFit function, fittype object, fitoptions and fit function.
I ran the 'createFit.m' function generated automatically from the "Generate code" action of the app, and compared the two results and I noticed that the two results differ from one another.
Am I missing somthing? My guess is that the app is evaluating a "draft" fit but doesn't run the whole process from start to end, unlike the "command line" method that finds the fit ultimately. Is that correct?

Risposte (0)

Prodotti

Release

R2015b

Richiesto:

Udi
il 18 Giu 2020

Community Treasure Hunt

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

Start Hunting!

Translated by