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

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

댓글을 달려면 로그인하십시오.

답변 (1개)

Yatish Jain
Yatish Jain 2018년 12월 3일

0 개 추천

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

질문:

2018년 12월 3일

댓글:

2018년 12월 3일

Community Treasure Hunt

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

Start Hunting!

Translated by