MATLAB: How to write a program for cubic spline

cubichermitenaturalperiodicspline

Hello!
How can I write programs for
  • natural cubic splines
  • periodic cubic splines
  • Hermite cubic splines?
I do not have any data, so am I allowed to just take some data?
I should take xi, i = 0,…, n+1 with
yi, i = 0,…, n+1
and determine the moments Mi

Best Answer

Read about interp1()
Related Question