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 天)
显示 更早的评论
回答(1 个)
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
1 个评论
madhan ravi
2019-3-20
If you want to use ode45():
doc ode45
MathWorkshttps://in.mathworks.com/help/matlab/math/parameterizing-functions.html - essential resource!
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!