How can I solve system of the matrix differential equation within MATLAB?
8 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I have a matrix of second order differential equation as;
X''= A X' + B X + C
where A, B and C are nxn dimensional matrices, and I am seeking for solving this equation via ode functions. I appreciate your feedback
Thanks
Javad
0 commentaires
Réponses (1)
George Papazafeiropoulos
le 21 Mai 2014
eqn = 'D2y - A*Dy - B*y = C';
inits2 = 'y(0)=a, Dy(0)=b';
y=dsolve(eqn,inits2,'x')
where a and b are the initial or boundary conditions
2 commentaires
George Papazafeiropoulos
le 21 Mai 2014
You can use the above solution procedure for each relation of your matrix equation separately. This is implemented in the following:
Except for this, you can adapt the Fint_K_C function of the following submission:
to solve directly the matrix equation.
Voir également
Catégories
En savoir plus sur Numerical Integration and Differential Equations dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!