Quote:
Originally Posted by Rapha Hello.
that was very helpful, thank you very much (and yes, i could get ode45 to work).
But actually i kinda screwed it(sorry, i did not exactly realize what my problem was and asked for something different), because my problem is :
with
i tried to find the IVP 1. order:
=>
I did not realize that there are 4 functions:
I still want to solve this by using ode45.
Regards
Rapha |
Now we have as state vector:
and derivative:
where:
You will need to write a Matlab function to evaluate the derivative and pass that to ode45 (the derivative is now too complicated to be easily passed as an anonymous function).
(You cound simplify the derivative by collecting terms)
CB