How to solve second order coupled ODEs with bvp4c?
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposta accettata
Jan
il 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 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Ordinary Differential Equations in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!