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 Comment

Solution is x=y=0. So it's not surprising that you get straight line graphs.

Sign in to comment.

Answers (1)

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

1 Comment

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

Sign in to comment.

Products

Release

R2018b

Asked:

on 3 Dec 2018

Commented:

on 3 Dec 2018

Community Treasure Hunt

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

Start Hunting!