Solve differential equations with the ODE function

조회 수: 2 (최근 30일)
Anis Frej
Anis Frej 2021년 6월 4일
댓글: Anis Frej 2021년 6월 4일
Hi,
How can I solve a differential equation that has this form and how can I define it in the function that will be used as input to the ODE function.
M(x) *(d²x/dt²) + C(x) *(dx/dt) + G(x,t) = 0
M and C depend on the variable x.
G depends on the variable x and time at the same time.
Thank you.
  댓글 수: 2
John D'Errico
John D'Errico 2021년 6월 4일
Did you look at the help docs for ODE45? Or for DSOLVE? If you do, you will find examples of exactly what to do, and how to write it.
doc ode45
doc dsolve
For example, if you want to use a tool like ODE45, you change the problem into a system of TWO first order differential equations. And you will indeed find an example of how to do exactly that in the help.
God gave us manuals for some reason, though too many people do not want to read them.
Anis Frej
Anis Frej 2021년 6월 4일
No, no, I've already read them and followed the document but I didn't get any good results
So my goal is to check if I have solved my system which has matrices that are not constant in a correct way or not that's all.

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

답변 (0개)

카테고리

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

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by