Meiyour
Posts:
17
Registered:
7/15/13


Using the ODE solver in a FOR loop
Posted:
Jul 15, 2013 9:02 AM


Hi. I need some help with the ODE15 solver.
I am trying to use the solver four coupled partial differential equations, using the method of lines. However, i need to include the solver in a for loop, but every attemp i've made so far has proved abortive.
How do i gi about this? Need something like:
For i=1:n u1( t(i), y1(i) ) = ode15(..........); u2( t(i), y2(i) ) = ode15(...........); end
Ant help would be greatly appreciated.

