Solving a differential equation?

I am trying to solve the equation exp(y) + (t*exp(y) - sin(y))y' = 0 using dsolve and make a contour plot and what I have is
syms y t;
sol = dsolve('exp(y) + (t*exp(y) - sin(y))*Dy = 0')
This keeps giving me the error Warning: Explicit solution could not be found; implicit solution returned.
How do I fix this?

Respuestas (1)

Torsten
Torsten el 6 de Mzo. de 2015

0 votos

The message is not an error message.
It's just an information that the solution to your differential equation can not be given in explicit form
y(t)=something.
If you want to make a contour plot, specify an initial condition and try "ezplot".
If this does not work, use a numerical ODE integrator (e.g. ODE45).
Best wishes
Torsten.

Preguntada:

el 6 de Mzo. de 2015

Respondida:

el 6 de Mzo. de 2015

Community Treasure Hunt

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

Start Hunting!

Translated by