Thread: ode45 Matlab
View Single Post
  #1  
Old November 26th, 2008, 10:41 PM
Rapha Rapha is offline
Senior Member
 
Join Date: Nov 2008
Posts: 400
Thanks: 57
Thanked 150 Times in 143 Posts
Rapha has a spectacular aura aboutRapha has a spectacular aura about
Default ode45 Matlab

Hello everyone!

I need to solve a IVP, for example

\dot{x} = x + 2\dot{y} + y

\dot{y} = y - 2\dot{x} + 5x

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? \dot{x} depends on \dot{y} and y ...

By the way,
I know how to solve

\dot{v}(t) = 10 - 5/2*v^2(t), t\in [0, 10]

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
Reply With Quote