Matlab interp1 extrapolation points

broken image
broken image

Since we want the function to go through the data points, that is interpolate the data, and since two points determine a line, the plip function is unique.Ī PCHIP, a Piecewise Cubic Hermite Interpolating Polynomial, is any piecewise cubic polynomial that interpolates the given data, AND has specified derivatives at the interpolation points. There is a different linear function between each pair of points. So I added the title plip because this is a graph of the piecewise linear interpolating polynomial. With line type '-o', the MATLAB plot command plots six 'o's at the six data points and draws straight lines between the points. Here is the data that I will use in this post.

broken image