Matlab equivalent cubic spline

Isomorphism,

Were you able to immitate the Matlab implementation in c/c++? or did you follow the book 'A practical guide to Splines' to come up with the implementation?

I have a need in my project to develop c++ equivalent of Matlab cubic spline functionality. I don't have the book right now, but I'm trying to judge what is the best route I should take!

Has anyone else had the experience in implementing the cubic spline functionality?

Thanks

Quote:

Originally Posted by

**Isomorphism** Are you still on it? Do you still have doubts with it?

I wrote a spline function that imitates MATLAB's not too long ago.

You can check the mathworks site, goto cleve moler's page. He has fully described the cubic splines in a neat way.

I believe MATLAB uses both clamped and Natural as inputs.