Solve a system of differential equations numerically
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I am trying to solve a system of differential equations numerically, preferably using the ode45 command. The equations are as follows-
dx/dt = f(x,y)*g(x)
dy/dx = h(x)
Both 'x' and 'y' are dependent variables and 't' is the independent variable
2 commentaires
David Goodmanson
le 11 Juil 2020
Hi Nishant,
If you convert the second equation to
dy/dt = h(x)*dx/dt
then you have a system where dy/dt and dx/dt can be specified in terms of x and y, so ode45 will apply.
Réponses (0)
Voir également
Catégories
En savoir plus sur Ordinary Differential Equations dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!