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?

답변 (1개)

Torsten
Torsten 2015년 3월 6일

0 개 추천

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.

카테고리

질문:

2015년 3월 6일

답변:

2015년 3월 6일

Community Treasure Hunt

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

Start Hunting!

Translated by