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

13 views (last 30 days)
How can i solve this 4x4 equations using the Gauss-Jordan elimination with MATLAB/octave?

Answers (1)

KSSV
KSSV on 22 Feb 2023
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

Categories

Find more on Linear Algebra in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!