Main Content

Spline Construction

Create splines including B-form, tensor-product, NURBs, and other rational splines

Using the Curve Fitter app or the fit function, you can fit cubic spline interpolants, smoothing splines, and thin-plate splines. Other Curve Fitting Toolbox™ functions allow more specialized control over spline construction. For example, you can use the function csapi for cubic spline interpolation. For more information, see How to Construct Splines.


bsplinePlot B-spline and its polynomial pieces
csapeCubic spline interpolation with end conditions
csapiCubic spline interpolation
csapsCubic smoothing spline
cscvn“Natural” or periodic interpolating cubic spline curve
frankeFranke's bivariate test function
getcurveInteractive creation of cubic spline curve
ppmakPut together spline in ppform
rpmakPut together rational spline
rscvnPiecewise biarc Hermite interpolation
rsmakPut together rational spline for standard geometric shapes
spap2Least-squares spline approximation
spapiSpline interpolation
spapsSmoothing spline
spcrvSpline curve by uniform subdivision
splinetoolExperiment with some spline approximation methods
spmakPut together spline in B-form
sptermsExplain spline terms
stmakPut together function in stform
tpapsThin-plate smoothing spline
titaniumTitanium test data


Introduction to Splines

Fundamental Spline Methods

Fitting Splines to Data

  • Cubic Spline Interpolation
    This example shows how to use the csapi and csape commands from Curve Fitting Toolbox™ to construct cubic spline interpolants.
  • Cubic Smoothing Splines
    This example shows how to use the csaps and spaps commands from Curve Fitting Toolbox™ to construct cubic smoothing splines.
  • Fitting a Spline to Titanium Test Data
    This example shows how to use commands from Curve Fitting Toolbox™ to fit a spline to titanium test data with manual and automatic selection of knots.

Spline Applications