The Math Forum

Search All of the Math Forum:

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

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

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 ]

Posts: 17
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(...........);

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]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.