Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
NCTM or The Math Forum.



Re: ode45
Posted:
Mar 26, 2014 6:06 PM


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.



