View the code
out = interpolation(xx, yy, x, method);
interpolation finds the values of the underlying function yy=F(xx) at x via pchip, cubic, or linear interpolation