Open Curve Fitting app
cftool( x, y )
cftool( x, y, z )
cftool( x, y, , w )
cftool( x, y, z, w )
cftool( filename )
cftool( '-v1', x, y )
cftool( '-v1', x, y, w )
cftool( x, y, z ) creates a surface fit to x and y inputs and z output. x, y, and z must be numeric, have two or more elements, and have compatible sizes. Sizes are compatible if x, y, and z all have the same number of elements or x and y are vectors, z is a 2D matrix, length(x ) = n, and length(y) = m where [m,n] = size(z). cftool opens Curve Fitting app if necessary.
cftool( x, y, , w ) creates a curve fit with weights w. w must be numeric and have the same number of elements as x and y.
cftool( x, y, z, w ) creates a surface fit with weights w. w must be numeric and have the same number of elements as z.
cftool( filename ) loads the surface fitting session in filename into Curve Fitting app. The filename should have the extension .sfit.
cftool -v1 opens the legacy Curve Fitting Tool.
Note: The -v1 option warns that the legacy Curve Fitting Tool will be removed in a future release. Use cftool instead.
cftool( '-v1', x, y ) starts the legacy Curve Fitting Tool with an initial data set containing the x and y data you supply. x and y must be numeric vectors having the same length.
cftool( '-v1', x, y, w ) also includes the weight vector w in the initial data set. w must have the same length as x and y.
Infs, 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