Documentation

Curve Fitting Toolbox Functions

Linear and Nonlinear Regression

cftool Open Curve Fitting app
fit Fit curve or surface to data
fittype Fit type for curve and surface fitting
fitoptions Create or modify fit options object
prepareCurveData Prepare data inputs for curve fitting
prepareSurfaceData Prepare data inputs for surface fitting
excludedata Exclude data from fit
argnames Input argument names of cfit, sfit, or fittype object
category Category of fit of cfit, sfit, or fittype object
coeffnames Coefficient names of cfit, sfit, or fittype object
coeffvalues Coefficient values of cfit or sfit object
dependnames Dependent variable of cfit, sfit, or fittype object
feval Evaluate cfit, sfit, or fittype object
formula Formula of cfit, sfit, or fittype object
get Get fit options structure property names and values
indepnames Independent variable of cfit, sfit, or fittype object
islinear Determine if cfit, sfit, or fittype object is linear
numargs Number of input arguments of cfit, sfit, or fittype object
numcoeffs Number of coefficients of cfit, sfit, or fittype object
probnames Problem-dependent parameter names of cfit, sfit, or fittype object
set Assign values in fit options structure
setoptions Set model fit options
type Name of cfit, sfit, or fittype object

Interpolation

cftool Open Curve Fitting app
fit Fit curve or surface to data
fittype Fit type for curve and surface fitting
fitoptions Create or modify fit options object
get Get fit options structure property names and values
set Assign values in fit options structure
feval Evaluate cfit, sfit, or fittype object
prepareCurveData Prepare data inputs for curve fitting
prepareSurfaceData Prepare data inputs for surface fitting
excludedata Exclude data from fit

Smoothing

cftool Open Curve Fitting app
fit Fit curve or surface to data
fittype Fit type for curve and surface fitting
fitoptions Create or modify fit options object
get Get fit options structure property names and values
set Assign values in fit options structure
smooth Smooth response data
prepareCurveData Prepare data inputs for curve fitting
prepareSurfaceData Prepare data inputs for surface fitting
excludedata Exclude data from fit

Fit Postprocessing

cftool Open Curve Fitting app
cfit Constructor for cfit object
sfit Constructor for sfit object
coeffnames Coefficient names of cfit, sfit, or fittype object
coeffvalues Coefficient values of cfit or sfit object
confint Confidence intervals for fit coefficients of cfit or sfit object
differentiate Differentiate cfit or sfit object
feval Evaluate cfit, sfit, or fittype object
integrate Integrate cfit object
plot Plot cfit or sfit object
predint Prediction intervals for cfit or sfit object
probvalues Problem-dependent parameter values of cfit or sfit object
quad2d Numerically integrate sfit object

Splines

Construction

bspline Plot B-spline and its polynomial pieces
csape Cubic spline interpolation with end conditions
csapi Cubic spline interpolation
csaps Cubic smoothing spline
cscvn "Natural" or periodic interpolating cubic spline curve
getcurve Interactive creation of cubic spline curve
ppmak Put together spline in ppform
rpmak Put together rational spline
rscvn Piecewise biarc Hermite interpolation
rsmak Put together rational spline for standard geometric shapes
spap2 Least-squares spline approximation
spapi Spline interpolation
spaps Smoothing spline
spcrv Spline curve by uniform subdivision
splinetool Experiment with some spline approximation methods
spmak Put together spline in B-form
stmak Put together function in stform
tpaps Thin-plate smoothing spline
spterms Explain spline terms
franke Franke's bivariate test function
titanium Titanium test data

Postprocessing

fn2fm Convert to specified form
fnbrk Name and part(s) of form
fnchg Change part(s) of form
fncmb Arithmetic with function(s)
fnder Differentiate function
fndir Directional derivative of function
fnint Integrate function
fnjmp Jumps, i.e., f(x+)-f(x-)
fnmin Minimum of function in given interval
fnplt Plot function
fnrfn Refine partition of form
fntlr Taylor coefficients
fnval Evaluate function
fnxtr Extrapolate function
fnzeros Find zeros of function in given interval
franke Franke's bivariate test function
spterms Explain spline terms
titanium Titanium test data

Breaks, Knots, and Sites

aptknt Acceptable knot sequence
augknt Augment knot sequence
aveknt Provide knot averages
brk2knt Convert breaks with multiplicities into knots
chbpnt Good data sites, Chebyshev-Demko points
knt2brk, knt2mlt Convert knots to breaks and their multiplicities
newknt New break distribution
optknt Knot distribution "optimal" for interpolation
sorted Locate sites with respect to mesh sites
Was this topic helpful?