ODE45 for nonlinear problem
2 次查看(过去 30 天)
显示 更早的评论
kindly check the below code....
2 个评论
回答(1 个)
darova
2020-6-14
- avoid global. YOu can make nested function in your case
function linear_vs_nonlinear
% variables
% code
function SD_L=linear(t,s)
% code
end
end
- you have 4 equations, but only 2 initial conditions
- some operators are forgotten (multiplier i think)
6 个评论
darova
2020-6-29
How do you know that ? Usually and are uknowns if you have ODE. and should be given
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Ordinary Differential Equations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!