point values from the curve

13 visualizaciones (últimos 30 días)
sudipta
sudipta el 23 de Mzo. de 2011
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)?

Respuestas (1)

Sarah Wait Zaranek
Sarah Wait Zaranek el 23 de Mzo. de 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).

Categorías

Más información sobre Splines en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by