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)
Show older comments
0 Comments
Answers (1)
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
1 Comment
madhan ravi
on 20 Mar 2019
If you want to use ode45():
doc ode45
MathWorkshttps://in.mathworks.com/help/matlab/math/parameterizing-functions.html - essential resource!
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!