View the code
out = interpolation(xx, yy, x, method);
Description: 'pchip= 'cubic', and 'linear' interpolation'