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 Kommentar

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

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Yatish Jain
Yatish Jain am 3 Dez. 2018

0 Stimmen

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

1 Kommentar

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

Melden Sie sich an, um zu kommentieren.

Produkte

Version

R2018b

Gefragt:

am 3 Dez. 2018

Kommentiert:

am 3 Dez. 2018

Community Treasure Hunt

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

Start Hunting!

Translated by