Solving a coupled system of differential equations with varying orders.
6 views (last 30 days)
Show older comments
Hi
I have a system of three equations. Two of them are second order differentials and one if a first order. I am unsure of how to develop the matrix for solving with ode45. Usually you would develop an equation for the second derivative however if this was the case with the first order equation you would lose all data. The system is seen in the picture.
Can anyone help me out?
0 Comments
Accepted Answer
Torsten
on 20 Jan 2015
y1'=y2
y2'=(-b*y2-k*y1-mu*(y1-y3)+f0)/m
y3'=(Lambda*y5-mu*(y3-y1))/Lambda
y4'=y5
y5'=(-B*y5-mu*(y3-y1)-K*y4+fs)/M
where
y1=x,y2=x',y3=y,y4=z,y5=z'
Best wishes
Torsten.
6 Comments
Torsten
on 30 Jan 2015
You have to specify M before you call ODE45 via odeset.
Take a look at the example hb1dae under
Best wishes
Torsten.
More Answers (0)
See Also
Categories
Find more on Ordinary Differential Equations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!