How can I use a loop and solve or ode45 to plot dy +4y=10 with y(0) = 0:0.1:2? Plot each solution on the same graph.

1 次查看(过去 30 天)
Screen Shot 2019-03-20 at 12.33.16 PM.png

回答(1 个)

madhan ravi
madhan ravi 2019-3-20
Show your attempt to get further help:
y0 = 0:.1:2; % before loop
ic = y(0)==y0(k) % inside loop
% k loop iterator
doc dsolve % read the proper usage

类别

Help CenterFile Exchange 中查找有关 Programming 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by