point values from the curve
10 views (last 30 days)
Show older comments
i have a discontinuous 2d signal.By using the spline curve i made this continuous.My problem is how do i get the equation for all dicontinuous parts or the main objective is how do I get point values from the curve(discontinuous part)?
0 Comments
Answers (1)
Sarah Wait Zaranek
on 23 Mar 2011
If you want to get points from a spline curve - I would suggest using ppval
x = 1:10;
y = cos(x);
pp = spline(x,y);
valY = ppval(pp,1)
If you want the piecewise equations, unmkpp will help you out:
[breaks,coefs,l,k,d] = unmkpp(pp)
This is assuming you are using spline in core MALTAB. Let me know if you are using another spline method (in a toolbox).
0 Comments
See Also
Categories
Find more on Splines in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!