How can I solve system of the matrix differential equation within MATLAB?

조회 수: 7 (최근 30일)
Javad
Javad 2014년 5월 21일
댓글: George Papazafeiropoulos 2014년 5월 21일
I have a matrix of second order differential equation as;
X''= A X' + B X + C
where A, B and C are nxn dimensional matrices, and I am seeking for solving this equation via ode functions. I appreciate your feedback
Thanks
Javad

답변 (1개)

George Papazafeiropoulos
George Papazafeiropoulos 2014년 5월 21일
eqn = 'D2y - A*Dy - B*y = C';
inits2 = 'y(0)=a, Dy(0)=b';
y=dsolve(eqn,inits2,'x')
where a and b are the initial or boundary conditions
  댓글 수: 2
Javad
Javad 2014년 5월 21일
Please note that the A,B and C are n dimensional matrices, as I know dsolve is used for scalar values.
George Papazafeiropoulos
George Papazafeiropoulos 2014년 5월 21일
You can use the above solution procedure for each relation of your matrix equation separately. This is implemented in the following:
Except for this, you can adapt the Fint_K_C function of the following submission:
to solve directly the matrix equation.

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

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by