Main Content

sftool

(Removed) Open Curve Fitting app

sftool has been removed. Use curveFitter instead. See Curve Fitter. For information on updating your code, see Compatibility Considerations.

Syntax

sftool
sftool(x,y,z)
sftool(x,y,z,w)
sftool(filename)

Description

sftool opens the Curve Fitting app or brings focus to the tool if it is already open.

sftool(x,y,z) creates a fit to x and y inputs (or predictor data) and z output (or response data). sftool opens the Curve Fitting app if necessary.

x, y, and z must be numeric, have two or more elements, and have compatible sizes. Sizes are compatible if either:

  • x, y, and z all have the same number of elements, or

  • x and y are vectors, z is a 2D matrix, where length(x) = n, length(y) = m, and [m,n] = size(z).

sftool(x,y,z,w) creates a fit with weights w. w must be numeric and have the same number of elements as z.

sftool(filename) loads the surface fitting session in filename into the Curve Fitting app. The filename should have the extension .sfit.

Infs, NaNs, and imaginary parts of complex numbers are ignored in the data.

The Curve Fitting app provides a flexible interface where you can interactively fit curves and surfaces to data and view plots. You can:

  • Create, plot, and compare multiple fits

  • Use linear or nonlinear regression, interpolation, local smoothing regression, or custom equations

  • View goodness-of-fit statistics, display confidence intervals and residuals, remove outliers and assess fits with validation data

  • Automatically generate code for fitting and plotting surfaces, or export fits to workspace for further analysis

Version History

Introduced in R2009a

collapse all

R2022a: sftool has been removed

sftool has been removed. Use curveFitter instead. For more information, see the Curve Fitter app.

To update your code, change instances of sftool to curveFitter. You do not need to change the input arguments. For example, use curveFitter(x,y,z) to fit a surface to the x, y, and z data.