spline
Cubic spline interpolation.
📝Syntax
yq = spline(x, y, xq)
pp = spline(x, y)
📥Input Arguments
Parameter Description
x Sample points.
y Sample values.
xq Query points.
📤Output Arguments
Parameter Description
yq Interpolated values.
pp Piecewise polynomial structure.
📄Description

spline evaluates a not-a-knot cubic spline or returns its piecewise polynomial form.

💡Examples
yq = spline(1:4, [0 1 0 1], [1.5 2.5])
🔗See Also
interp1
🕔Version History
Version Description
2.0.0 initial version
Edit this page on GitHub