Open Curve Fitting app
sftool opens Curve Fitting app or brings
focus to the tool if it is already open.
sftool(x,y,z) creates a fit to
(or predictor data) and
z output (or response data).
Curve Fitting app if necessary.
be numeric, have two or more elements, and have compatible sizes.
Sizes are compatible if either:
have the same number of elements, or
z is a 2D matrix, where
length(y) = m, and
sftool(x,y,z,w) creates a fit with weights
be numeric and have the same number of elements as
the surface fitting session in
Curve Fitting app. The
have the extension
NaNs, and imaginary
parts of complex numbers are ignored in the data.
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