For a project in school we have to write a function in Matlab.
[c] = spline_coeff(x,f)
where
• x vector of interpolation points;
• f vector of function values ;
• c vector of coefficienten from de interpolating cubic splinefunction.
We have tried loads of algorithms we have found online, but nothing works. Can anyone push us in the right direction, or provide us with some example data and solutions of that data. Because that is imposible to find online also.
Thanks