
Lecture 29

Recap
Summary of Chapter 6
Interpolation
Linear Interpolation

Cubic Spline Interpolation
Connecting data points with straight lines probably isn’t
the best way to estimate intermediate values, although it is
surely the simplest
A smoother curve can be created by using the cubic
spline interpolation technique, included in the interp1
function. This approach uses a third-order polynomial to
model the behavior of the data
To call the cubic spline, we need to add a fourth field to
interp1 :
interp1(x,y,3.5,'spline')
This command returns an improved estimate of y at x =
3.5:



