📝Syntax
vq = interp1(x, v, xq)
vq = interp1(x, v, xq, method)
vq = interp1(x, v, xq, method, extrapolation)
vq = interp1(v, xq)
vq = interp1(v, xq, method)
vq = interp1(v, xq, method, extrapolation)
pp = interp1(x, v, method, 'pp')
📄Description
vq = interp1(x, v, xq) returns interpolated values of a 1-D function at specific query points. The default method is linear interpolation.
pp = interp1(x, v, method, 'pp') returns a piecewise polynomial structure that can be evaluated with ppval.
📚Bibliography
de Boor, C., A Practical Guide to Splines, Springer-Verlag, 1978.