ploting reversed laplace function

Why is it not working?, please help syms s; y =(4.36/(s*(s^2+1.61*s+0.935+4.36))); ilaplace(y) t = 0:0.001:8; plot(t,y, '-r' )

3 comentarios

eliman
eliman el 23 de Abr. de 2011
syms s;
y =(4.36/(s*(s^2+1.61*s+0.935+4.36)));
ilaplace(y)
t = 0:0.001:8;
plot(t,y, '-r' )
Andrew Newell
Andrew Newell el 23 de Abr. de 2011
Thanks for formatting the code. It would be better, though, to edit your original question.
Andrew Newell
Andrew Newell el 23 de Abr. de 2011
In your question you should also say how it is not working. In this case, you are getting an error message:
??? Error using ==> plot
Conversion to double from sym is not possible.

Iniciar sesión para comentar.

Respuestas (1)

Andrew Newell
Andrew Newell el 23 de Abr. de 2011

0 votos

The Symbolic Toolbox does not substitute numeric values of t into the expression unless you ask it to. You could do this:
plot(t,subs(y,t),'-r')

Categorías

Más información sobre Symbolic Math Toolbox en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 23 de Abr. de 2011

Community Treasure Hunt

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

Start Hunting!

Translated by