Explicit terms into an odefun
12 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hello everybody.
I am solving a system of ODE's. Let's suppose we are considering the equations:
x' + y' + x*y = f(t);
2x' + y' = g(t);
x(0)=x0;
y(0)=y0;
I know matlab can solve this without problems. I am considering this simple example only to make things as clear as possible.
I was wondering if it might be possible to express some terms explicitly. For example, might it be possible to evaluate the term "x*y" backwards?
I mean, is there any easy way to write the odefun so that the product "x*y" is evaluated backwards at each time step, as the multiplication between the values of x and y obtained for the previous (solved) time step?
For instance, at t=t1 this would mean "x*y" = "x0 * y0", and so on.
Thanks
Andrea
0 commentaires
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!