How do I add initial conditions in dsolve while solving a system of ODEs in matrix form?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Here's a simple code
syms x(t) y(t)
A = [1 2; -1 1];
B = [1; t];
Y = [x; y];
S = dsolve(diff(Y) == A*Y + B);
x = S.x
y = S.y
I am trying to implement something like, x(0)=0 and y(0)=0. How do I add these conditions?
0 commentaires
Réponse acceptée
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Ordinary 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!