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: ode45
Replies: 2   Last Post: Mar 27, 2014 3:44 AM

Advanced Search

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

Posts: 10
Registered: 3/26/14
Re: ode45
Posted: Mar 26, 2014 6:06 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Did you mean:
dydt(1) = (Qao_current/c) - (y(1)/(Rp*c));
dydt(2) = (0/c) - (y(2)/(Rp*c));
rather than:
dydt(1) = (Qao_current/c) - (y(1)/(Rp*c));
dydt(1) = (0/c) - (y(2)/(Rp*c));

You are setting dydt(1) twice.

You could also get rid of the 0/c if time is at all an issue as it is equal to 0. It does show the similarity between the two equations though so it is good for clarity.


Date Subject Author
3/26/14
Read ode45
Matthew
3/26/14
Read Re: ode45
David Stevens
3/27/14
Read Re: ode45
Torsten

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.