NM-Lab 06
NM-Lab 06
In mathematics, the Gaussian elimination method is known as the row reduction algorithm for solving
linear equations systems. It consists of a sequence of operations performed on the corresponding matrix
of coefficients. We can also use this method to estimate either of the following:
Procedure
Procedure to Write Gaussian Elimination Method in MATLAB
You can either write a script or define a function. Let’s write a function so you can reuse it.
function x = gauss_elimination(A, b)
n = length(b);
for i = 1:n-1
maxRow = maxRow + i - 1;
if maxRow ~= i
end
for j = i+1:n
end
end
x = zeros(n,1);
for i = n-1:-1:1
end
end