i am solving a ode
Afficher commentaires plus anciens
syms y(t);
ode = diff(y,t) == (1-y)*exp(-0.1*y)
ysol(t) = dsolve(ode)
cond = y(0) == .5;
ysol(t) = dsolve(ode,cond)
t=[0:5]
plot(t,ysol(t))
and error came
Error using plot Conversion to double from sym is not possible.
Error in q1 (line 7) plot(t,ysol(t))
kindly help me solve the problem
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur 2-D Function Plots dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!