Skip to Main Content Skip to Search
Product Documentation

Interactive Fit Comparison

Refining Your Fit

After you create a single fit, you can refine your fit, using any of the following optional steps:

Creating Multiple Fits

After you create a single fit, it can be useful to create multiple fits to compare. When you create multiple fits you can compare different fit types and settings side-by-side in the Curve Fitting Tool.

After creating a fit, you can add an additional fit using any of these methods:

Each additional fit appears as a new tab in the Curve Fitting Tool and a new row in the Table of Fits. See Interactive Fit Comparison for information about displaying and analyzing multiple fits.

Optionally, after you create an additional fit, you can copy your data selections from a previous fit by selecting Fit > Use Data From > Other Fit Name. This copies your selections for x, y, and z from the previous fit, and any selected validation data. No fit options are changed.

Use sessions to save and reload your fits. See Interactive Sessions.

Duplicating a Fit

To create a copy of the current fit tab, select Fit > Duplicate "Current Fit Name". You also can right-click a fit in the Table of Fits and select Duplicate

Each additional fit appears as a new tab in the Curve Fitting Tool.

Deleting a Fit

Delete a fit from your session using one of these methods:

Displaying Multiple Fits Simultaneously

When you have created multiple fits you can compare different fit types and settings side by side in the Curve Fitting Tool. You can view plots simultaneously and you can examine the goodness-of-fit statistics to compare your fits. This section describes how to compare multiple fits.

To compare plots and see multiple fits simultaneously, use the layout controls at the top right of the Curve Fitting Tool. Alternatively, you can click Window on the menu bar to select the number and position of tiles you want to display. A fit figure displays the fit settings, results pane and plots for a single fit. The following example shows two fit figures displayed side by side. You can see multiple fits in the session listed in the Table of Fits.

You can close fit figures displays (with the Close button, Fit menu, or context menu), but they remain in your session. The Table of Fits displays all your fits (open and closed). Double-click a fit in the Table of Fits to open (or focus if already open) the fit figure. To remove a fit, see Deleting a Fit

You can dock and undock individual fits and navigate between them using the standard MATLAB Desktop and Window menus in the Curve Fitting Tool. For more information, see Open and Rearrange Desktop Tools and Documents in the MATLAB Desktop Tools and Development Environment documentation.

Using the Statistics in the Table of Fits

The Table of Fits list pane shows all fits in the current session.

After using graphical methods to evaluate the goodness of fit, you can examine the goodness-of-fit statistics shown in the table to compare your fits. The goodness-of-fit statistics help you determine how well the model fits the data. Click the table column headers to sort by statistics, name, fit type, and so on.

The following guidelines help you use the statistics to determine the best fit:

For a more detailed explanation of the Curve Fitting Toolbox statistics, see Goodness-of-Fit Statistics.

To compare the statistics for different fits and decide which fit is the best tradeoff between over- and under-fitting, use a similar process to that described in Example: Interactive Curve Fitting.

  


 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS