How can I extract and store the spline fitting curve function on my data?

Hi there,
I want to see, extract and store the equations of the spline fitting curve function which is produced based on my data.
Do you know how to do that?
Thank you so much.
Smiles, Mo

Answers (1)

If you created the spline as follows pp = spline(x,y); >> pp.coefs will give you the coefficients for each of the piece wise equations in the spline. Alternatively you can also use unmkpp:

Categories

Asked:

Mo
on 14 Dec 2012

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!