How to solve this system of ODEs?

조회 수: 8 (최근 30일)
Jaydev Singh Rao
Jaydev Singh Rao 2020년 12월 25일
답변: Milan Padhiyar 2020년 12월 28일
I was try to study a dynamical system and for that after accounting for all factor I got the following system of differential equations:
[1]
and,
[2]
where c is a constant.
I want to find a solution to these differential equations. Is it possible to find an analytical or numerical solution of these equations using matlab. If so how?
I not very much familiar with the procedure for solving differential equations using matlab.
Thanks!
  댓글 수: 1
James Tursa
James Tursa 2020년 12월 26일
Do you have initial conditions for x, y, and dy/dt? If so, you could rewrite your equations as a system of three 1st order equations and use ode45( ) to find a numerical solution.

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

답변 (1개)

Milan Padhiyar
Milan Padhiyar 2020년 12월 28일
Hello Jaydev,
We can solve the coupled ODE system by using ‘ode45’ in MATLAB. This function requires arguments as first-order ODE equations, time, and initial conditions. By looking into your equation, the state vector of this system will be [x, y, y_dot], where y_dot is the derivative of y with respect to t.
So you need to rewrite both equations in a form of a column vector consisting of first-order ODEs. The LHS of column vector should look like [x_dot, y_dot, y_ddot], where x_dot and y_dot are derivative of x and y with respect to t respectively, and y_ddot is derivative of y with respect to t.
Please refer to the below link for the examples on ‘ode45’.
Thank You!

카테고리

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