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 comentario

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

Iniciar sesión para comentar.

Respuestas (1)

Yatish Jain
Yatish Jain el 3 de Dic. de 2018
Yes, I just realised how stupid I was being. I changed the conditions and got a graph. Cheers

1 comentario

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

Iniciar sesión para comentar.

Productos

Versión

R2018b

Preguntada:

el 3 de Dic. de 2018

Comentada:

el 3 de Dic. de 2018

Community Treasure Hunt

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

Start Hunting!

Translated by