Solve the given system of equations using the Gauss-Jordan elimination method with MATLAB.

조회 수: 3 (최근 30일)
How can i solve this 4x4 equations using the Gauss-Jordan elimination with MATLAB/octave?

답변 (1개)

KSSV
KSSV 2023년 2월 22일
Read about rref
A = [0.1 -2.5 1.2 -0.75 108 ;
2.4 1.5 -1.8 0.25 -81;
0.4 -3.2 1.6 -1.4 148.8;
1.6 1.2 -3.2 0.6 -143.2] ;
[R,p] = rref(A) ;
R(:,end)
ans = 4×1
10 -20 40 -12
% Check
A(:,1:4)*R(:,end)
ans = 4×1
108.0000 -81.0000 148.8000 -143.2000

카테고리

Help CenterFile Exchange에서 Octave에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by