This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Getting Started with Curve Fitting Toolbox

Fit curves and surfaces to data using regression, interpolation, and smoothing

Curve Fitting Toolbox™ provides an app and functions for fitting curves and surfaces to data. The toolbox lets you perform exploratory data analysis, preprocess and post-process data, compare candidate models, and remove outliers. You can conduct regression analysis using the library of linear and nonlinear models provided or specify your own custom equations. The library provides optimized solver parameters and starting conditions to improve the quality of your fits. The toolbox also supports nonparametric modeling techniques, such as splines, interpolation, and smoothing.

After creating a fit, you can apply a variety of post-processing methods for plotting, interpolation, and extrapolation; estimating confidence intervals; and calculating integrals and derivatives.


  • Curve Fitting Tools

    Curve fitting apps and functions in Curve Fitting Toolbox.

  • Curve Fitting

    To interactively fit a curve, follow the steps in this simple example:

  • Surface Fitting

    Get started with surface fitting, interactively using Curve Fitting app or programmatically using the fit function.

  • Spline Fitting

    Options for spline fitting in Curve Fitting Toolbox, including Curve Fitting app, using the fit function, or using specialized spline functions.

Featured Examples