Solving ODE

조회 수: 8 (최근 30일)
zizo
zizo 2011년 5월 31일
[EDIT: 20110530 22:44 CDT - clarify - WDR]
hey . how i solve this linear equations (ODE) in matlab
x-y-5z-5=0
3x+y-3z=5
y+4=z
  댓글 수: 1
Walter Roberson
Walter Roberson 2011년 5월 31일
Those are not ODE: there is no differential term anywhere in them.

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

채택된 답변

Walter Roberson
Walter Roberson 2011년 5월 31일
x_y_z = [1 -1 -5;3 1 -3;0 1 -1] \ [5 5 -4].';
And crosschecking the second line:
>> 3*x_y_z(1)+x_y_z(2)-3*x_y_z(3) ans = 5
The values in the matrix to the left of the \ have been read off from the x, y, and z coefficients of the linear equations. The values in the vector to the right of the \ have been read off from the implicit right hand sides (constant terms) of the linear equations.

추가 답변 (1개)

zizo
zizo 2011년 5월 31일
thanks man

카테고리

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