Curve Fitting Toolbox    

Saving the Fit Results

By clicking the Save to workspace button, you can save the selected fit and the associated fit results to the MATLAB workspace. The fit is saved as a MATLAB object and the associated fit results are saved as structures. This example saves all the fit results for the best fit, poly2.

fittedmodel1 is saved as a Curve Fitting Toolbox cfit object.

The cfit object display includes the model, the fitted coefficients, and the confidence bounds for the fitted coefficients.

The goodness1 structure contains goodness of fit results.

The output1 structure contains additional information associated with the fit.


  Determining the Best Fit Analyzing the Fit