Main Content

Curve Fitting Tools

Curve Fitting Toolbox™ software allows you to work in two different environments:

  • An interactive environment, with the Curve Fitter app and the Spline Tool

  • A programmatic environment that allows you to write object-oriented MATLAB® code using curve and surface fitting methods

To open the Curve Fitter app or Spline Tool, enter one of the following:

To list the Curve Fitting Toolbox functions for use in MATLAB programming, type the following:

help curvefit

The code for any function can be opened in the MATLAB Editor by typing edit, followed by the function name. For example:

edit fittype

Brief command line help for any function is available by typing help, followed by the function name. For example:

help smooth

Complete documentation for any function is available by typing doc, followed by the function name. For example:

doc fit

You can change the way any toolbox function works by copying and renaming its file, examining your copy in the editor, and then modifying it.

You can also extend the toolbox by adding your own files, or by using your code in combination with functions from other toolboxes, such as Statistics and Machine Learning Toolbox or Optimization Toolbox software.