Solving a system of three second order coupled differential equation
조회 수: 5 (최근 30일)
이전 댓글 표시
Hi,
Please someone help me in solving these three coupled differential equation using ode45
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/804864/image.png)
I want to plot three things :
in terms of time t
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/804869/image.png)
Please someone help me out!!
댓글 수: 1
James Tursa
2021년 11월 18일
Have you looked at the documentation for ode45? There are vector examples that can get you started. In your case, you have three 2nd order equations, so your state vector will be 3*2 = 6 elements. The state vector will be [n1;n2;n3;n1dot;n2dot;n3dot], and you will need initial conditions for this 6-element state vector.
답변 (1개)
J Chen
2021년 11월 18일
Use
as states and express the derivatives of the states as functions of the states, e.g., d/dt(
)=
etc.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/805379/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/805384/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/805389/image.png)
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Ordinary Differential Equations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!