Hello CaptainBlack!
Thank you so much for your helpful comment!
Quote:
Originally Posted by CaptainBlack 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) |
I tried it but it still doesn't work.
Code:
function dx = ivp(t, x)
dx = \dot{x} * x;
clearly represented, I wrote

for
then:
[t, x] = ode45(@ivp, [0, 10], [??,??,??,??] )
where
![t \in [0, 10] t \in [0, 10]](http://www.mathhelpforum.com/math-help/latex2/img/1c75f0e0c25ae64c5fe7e65227bbcb32-1.gif)
and ?? = [x_3(0); x_4(0);, ...(0); ...(0)]
this is stupid, but I don't know the initial values :-(