solving coupled differential system
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Hello. I am trying to solve two coupled differential equation as below:
m1x"+m2ry"=-k1(2x1-x2-x0)
m2x"+Ay"=-k2x1+Ky-f
Note: m1,m2,k1,k2,x2,x0,A,k2,K,f are known
thanks alot
1 Commento
John D'Errico
il 25 Apr 2020
Modificato: John D'Errico
il 25 Apr 2020
Why was it necessaryu to ask this question twice? I've closed the other one you asked.
Risposte (1)
Radu Trimbitas
il 25 Apr 2020
Dear Saman,
If set x=u(1), x'=u(2), y=u(3), y'=u(4) and
M=[1,0,0,0; 0, m1,0,m2; 0,0,1,0; 0, m2,0,A], then the system becomes
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/287420/image.png)
M could be seen as a mass matrix and can be introduced using option Mass in odeset function, see the attachment.
2 Commenti
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!