Explicit terms into an odefun
10 views (last 30 days)
Show older comments
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 Comments
Answers (0)
See Also
Categories
Find more on Ordinary Differential Equations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!