point values from the curve
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (1)
Sarah Wait Zaranek
am 23 Mär. 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 Kommentare
Siehe auch
Kategorien
Mehr zu Splines finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!