Using a uniform mesh for interpolation is not always wise.

Click here to download interpolating.m

Linear Interpolation.

Quadratic Interpolation.

Natural Cubic Spline.

Not a Knot Cubic Spline.

A matlab *.m file "interp.m" which needs subroutine f.m

Click here to down-load the interp.m file.


A matlab *.m file "interp_big.m" which needs subroutine f.m

Click here to down-load interp_big.m
Click here to down-load f.m