How can I plot a second order non-linear ODE?

This is my code so far but it does not work:
syms y(t)
ode = .003*diff(y,t)== .003*9.8-3.048*10^-6*y-
9.0726*10^-5*y^2;
cond = y(0) == 0;
ySol(t) = dsolve(ode,cond)
ezplot(y(t));

 Respuesta aceptada

Star Strider
Star Strider el 19 de Sept. de 2018
I would think plotting ‘ySol(t)’ would be more interesting:
syms y(t)
ode = .003*diff(y,t)== .003*9.8-3.048*10^-6*y-9.0726*10^-5*y^2;
cond = y(0) == 0;
ySol(t) = dsolve(ode,cond)
ezplot(ySol(t));

2 comentarios

Briana Hackos
Briana Hackos el 19 de Sept. de 2018
Thanks! Would you happen to know how to scale the y and x axis?
Star Strider
Star Strider el 19 de Sept. de 2018
As always, my pleasure!
Probably. What do you want to do with them?

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Numerical Integration and Differential Equations en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 19 de Sept. de 2018

Comentada:

el 19 de Sept. de 2018

Community Treasure Hunt

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

Start Hunting!

Translated by