I am trying to code a system of ODE's shown below.
As seen, the second ODE completely depends on the value of the first ODE.
How can I code the second ode?
I am using ode45.
I am trying to code a system of ODE's shown below.
As seen, the second ODE completely depends on the value of the first ODE.
How can I code the second ode?
I am using ode45.
Yes, that's quite possible. Define
x
as[c;ce]
, then you have something like:and then you can call the ode solver as: