Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Using the ODE solver in a FOR loop
Replies: 11   Last Post: Jul 18, 2013 3:44 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Meiyour

Posts: 15
Registered: 7/15/13
Using the ODE solver in a FOR loop
Posted: Jul 15, 2013 9:02 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

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.



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.