y = dsolve('Dy = (1+2*t)*sqrt(y)', 'y(0)=1.0')
y =
(t*(t + 1) + 2)^2/4
(t*(t + 1) - 2)^2/4
how to plot 'y' w.r.t 't' with t varying from 0 to 5 with step size 0.25

 Accepted Answer

Azzi Abdelmalek
Azzi Abdelmalek on 6 Dec 2013
Edited: Azzi Abdelmalek on 6 Dec 2013
y = dsolve('Dy = (1+2*t)*sqrt(y)', 'y(0)=1.0')
t=0:0.25:5;
out=subs(y,t)
plot(t,out)

More Answers (0)

Community Treasure Hunt

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

Start Hunting!