Main Content

Spline Construction

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

Using the Curve Fitter app or thefitfunction, 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 functioncsapifor cubic spline interpolation. For more information, seeHow to Construct Splines.

Functions

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
franke Franke's bivariate test function
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
spterms Explain spline terms
stmak Put together function in stform
tpaps Thin-plate smoothing spline
titanium Titanium test data

Topics

Introduction to Splines

Fundamental Spline Methods

Fitting Splines to Data

  • Cubic Spline Interpolation
    This example shows how to use thecsapiandcsapecommands from Curve Fitting Toolbox™ to construct cubic spline interpolants.
  • Cubic Smoothing Splines
    This example shows how to use thecsapsandspapscommands from Curve Fitting Toolbox™ to construct cubic smoothing splines.
  • 样条拟合钛测试数据
    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