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 view (last 30 days)
Screen Shot 2019-03-20 at 12.33.16 PM.png

Answers (1)

madhan ravi
madhan ravi on 20 Mar 2019
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

Categories

Find more on Programming in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!