How to solve second order coupled ODEs with bvp4c?
3 次查看(过去 30 天)
显示 更早的评论
I want to solve the following ODEs:
With boundary conditions
I'm aware that this problem needs to be solved with bvp4c or bvp5c, although I have great difficulty solving this because the equations are coupled. Is it possible to solve this problem with bvp4/5c, and how do I couple this?
0 个评论
采纳的回答
Jan
2021-11-19
function dy = YourODE(t, y)
k = 17;
dy = [y(3); ...
y(4);
k * y(1) * y(2); ...
k * y(1) * y(2)];
end
If you call the coordinates x, y or c_a, c_b does not matter. I do not see, why a coupling is a problem. Does this help you already?
0 个评论
更多回答(0 个)
另请参阅
类别
在 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!