Solve coupled second order differential equations using ODE45

Hi,
I am trying to solve the following second order equations using ODE45 and plot them but all I am getting are straight line graphs running on the x-axis which is wrong.
Equations:
1] x''+Ax+By=0
2] y''+Bx+Cy=0
where, A,B,C are constants. All initial conditions=0.
Can anyone help me out please?

回答(1 个)

Yes, I just realised how stupid I was being. I changed the conditions and got a graph. Cheers

1 个评论

Everybody is human , post your solution as an answer and accept so that people having similar question will find a useful solution

请先登录,再进行评论。

类别

产品

版本

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by