You can work with splines in Curve Fitting Toolbox™ in several ways.
Using the Curve Fitting app or the
Fit cubic spline interpolants to curves or surfaces
Fit smoothing splines and shape-preserving cubic spline interpolants to curves (but not surfaces)
Fit thin-plate splines to surfaces (but not curves)
The toolbox also contains specific splines functions
to allow greater control over what you can create. For example, you
can use the
for cubic spline interpolation. Why would you use
csapi instead of the
You might require greater flexibility to work with splines for the
You want to combine the results with other splines, e.g., by addition.
You want other types of splines such as ppform, B-form, tensor-product, rational, and stform thin-plate splines.
You want to create splines without data.
You want to specify breaks, optimize knot placement, and use specialized functions for spline manipulation such as differentiation and integration.
If you require specialized spline functions, see the following sections for interactive and programmatic spline fitting.
You can access all spline functions from the
To programmatically fit splines, see Construction for descriptions of types of splines and numerous examples.