Categories &

Functions List

Function Reference: makima

statistics: yi = makima (x, y, xq)
statistics: yi = makima (y, xq)
statistics: yi = makima (…, "extrap")

Compute the 1-D Modified Akima (MAKIMA) interpolant of sample data x, y evaluated at query points xq.

The MAKIMA method generates a **shape-preserving piecewise cubic Hermite** interpolant using a modified Akima derivative estimation method.

For a strictly increasing vector of sample points x and corresponding values y, the function returns the interpolated values yi at the query points xq.

If only two inputs are given, x is assumed to be [1:length(y)].

The optional string "extrap" enables extrapolation for query points outside the range of x. By default, extrapolation returns NaN.

See also: interp1, pchip, spline

Source Code: makima