Quote:
Originally Posted by Rapha Hello everyone!
I need to solve a IVP, for example
x(0) = 0.995
y(0) = 0
(I actually don't know if there is a solution...)
But how to solve it by using ode45?  depends on  and y ...
By the way,
I know how to solve
v0 = v(0) = 0
for example:
[ t , v ] = ode45 (@( t , v ) 10-5v^2/2 , [0, 10], v0 ) ;
----
How to solve the IVP with 2 equations?
Best regards,
Rapha |
Eliminate the

term in the first equation by substituting from the second, and

for the second by substituting from the first:
So now writing this as a first order vector ODE:
where:
So now can you get ode45 to work?
CB