필터 지우기
필터 지우기

Solving System of 5 ODEs using ODE45

조회 수: 2 (최근 30일)
Eira
Eira 2014년 10월 23일
댓글: Mikhail 2014년 10월 23일
I have a 5 differential equations I am needing to solve. Three of the equations are second order while the other two are first order. I know how to write the code to solve a system of two first order ODEs, but I cannot seem to connect the concepts from that to what I am needing. I am trying to use the ode45 function. I don't really have any lines of code as matlab gives me errors on everything. I can supply the equations if needed.

답변 (1개)

Mikhail
Mikhail 2014년 10월 23일
You can always get two first order ODE from one second order:
if you have 2nd order ODE for y(t), use y1=y(t), y2=y'(t)=dy/dt.
So you can use ode45 to solve system of 8 1st order equations.
  댓글 수: 1
Mikhail
Mikhail 2014년 10월 23일
In more details:
If your 2nd order ODE for y(t) is f(y'',y',y,t)=0, where ' is derivative, f - some function, you denote y1(t)=y(t) and y2(t)=y'(t) and get 2 1st order ODE's:
f(y2'(t),y2(t),y1(t),t)=0
y2'(t)=y1(t)

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

카테고리

Help CenterFile Exchange에서 Ordinary Differential Equations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by