point values from the curve
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponses (1)
Sarah Wait Zaranek
le 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 commentaires
Voir également
Catégories
En savoir plus sur Splines dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!