Solving differential equation containing independent function
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
shaunaksinha
le 25 Juil 2017
Réponse apportée : Torsten
le 25 Juil 2017
Hi, I am trying to solve a differential equation of the form:
y_dot = f-5y
where f is a function stored as an array with values corresponding to each instant within the integration time interval. From what I know, this is not an ode and can't be solved using the built in ode solvers. Is there a way to solve this differential equation in MATLAB. Thank you!
0 commentaires
Réponse acceptée
Torsten
le 25 Juil 2017
The example
"ODE with Time-Dependent Terms"
under
https://de.mathworks.com/help/matlab/ref/ode45.html
shows you how to proceed.
Best wishes
Torsten.
0 commentaires
Plus de réponses (1)
KSSV
le 25 Juil 2017
Then write your code for Runge-Kutta method of solving ODE. You may have a look here for this:
0 commentaires
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!