How to solve second order coupled ODEs with bvp4c?
3 views (last 30 days)
Show older comments
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 Comments
Accepted Answer
Jan
on 19 Nov 2021
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 Comments
More Answers (0)
See Also
Categories
Find more on Ordinary Differential Equations 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!