Professional Documents
Culture Documents
BY
SYAHRUL FITHRY BIN SENIN
SENIOR LECTURER
LESSON LEARNING OUTCOMES
• to write MATLAB script files that execute the Gauss-Elimination, Gauss-Jordan and LU
Decomposition method on solving simultaneous linear equations (CO2:PO5)
• to write MATLAB script/function file on solving the simultaneous linear equations
(CO2:PO5)
• to run the created MATLAB script/function on some civil engineering examples
(CO2:PO5)
GAUSS ELIMINATION METHOD
A b
Create Augmented Matrix
R3 + (15/2)R2 -> R3
BACK SUBSTITUTION TO OBTAIN UNKNOWNS
-54 x3 = 108
-2x2+ 6x3= -10
x1-3x2 + x3 = 4
LU DECOMPOSITION METHOD
[L,U,P] = lu(A)
y = L\(P*b);
x = U\y;
ASSIGNMENT #2 (SUBMISSION ONE WEEK) (12
NOON) (GROUP K)
ASSIGNMENT #2 (SUBMISSION ONE WEEK) (12
NOON) (GROUP E)