Solving a non-standard ODE
Afficher commentaires plus anciens
I'm trying to solve an ODE like this: xdot = r(t)-x, where r(t) is a pre-calculated signal array of size 100. Let x(0) = 0. How do I set up the ODE? Thanks a lot.
Réponses (1)
Nicolas Schmit
le 4 Déc 2017
0 votes
Create a interpolation of r(t), for example using interp1(), then use the interpolation routine in an ODE solver.
Catégories
En savoir plus sur Ordinary Differential Equations dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!