FUNCTION REFERENCE
pchip
Shape-preserving piecewise cubic Hermite interpolation.
Shape-preserving piecewise cubic Hermite interpolation.
Syntax
yy = pchip(x, y, xx)Syntax
pp = pchip(x, y)x and y are vectors of the same length. Values outside the data range are
extrapolated by the end polynomial. With two inputs the result is the
piecewise polynomial structure for ppval.
Example
pchip([0 1 2 3], [0 1 1 5], [0.5 1.5 2.5]) % [0.6875 1 2.25]Example
pp = pchip([0 1 2 3], [0 1 1 5]); ppval(pp, 2.5) % 2.25Differences from MATLAB: matrix y is not supported yet.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.