I need to fit a cubic spline to a sequence of N knots (xi, yi), 1 < i < N
My xi are are distinct, in ascending order but not necessarily equally spaced. I need to write a program in Matlab to solve for the curvatures si.
Can anyone can help me on how to go around in solving this.