Cubic Spline Interpolation

cspline(vx, vy) or cspline(Mxy, Mz)
pspline(vx, vy)
or pspline(Mxy, Mz)
lspline(vx, vy) or lspline(Mxy, Mz)

Return a vector which interp uses to create a cubic, piecewise polynomial that passes through all the (x,y) data points. The piecewise polynomial has continuous first and second derivatives for any value of x. The resultant spline curve is either cubic (cspline), parabolic (pspline) or linear (lspline) at the endpoints. These functions can also be used for two-dimensional splines, where a surface that corresponds to a cubic polynomial in x and y is passed through a grid of points in such a way that the first and second derivatives of the surface are continuous across each point in each direction.

interp(vs, vx, vy, x) or interp(vs, Mxy, Mz, X) Returns a spline interpolated value of vy at a point x using the output vector vs from *spline. If the spline function has been used to fit a surface, X is a 2-element vector at which to calculate the interpolated z-value.

Arguments:

Notes:

QuickSheet - Differentiation and integration of data vectors
QuickSheet - 2D interpolation

Related Topics