Extraction analytical eqution from interpolant fitting?

1 view (last 30 days)
How can i extract analytical equation from cfit, when i use interpolant fitting (e.g. cubic spline)?

Accepted Answer

Walter Roberson
Walter Roberson on 20 Nov 2015
When you asked this question about a day ago, you wrote in terms of "symbolic" expression rather than analytical expression.
To answer your question you are going to need to describe the form of analytical equation you need. cubic splines are inherently defined piece-wise, so there is not going to be a single equation unless you start using piecewise() or heaviside() or similar.
  1 Comment
Izya Catsman
Izya Catsman on 23 Nov 2015
Edited: Izya Catsman on 23 Nov 2015
Yeah, thank you, your link has been most helpful. I solved my problem using spline() and ppval() commands. I still dont uderstand why you can't just get the equation stright from the curve fitting application, for instance: ppval(SomeOperator(cfit),xx). May be it cuz i'm noob) But it doesn't matter now.
PS: Sorry for spamming this question, i was desperate for help, and site returned some wierd error every time i sent it)

Sign in to comment.

More Answers (0)

Categories

Find more on Interpolation in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!