If we solve Gauss elimination without pivoting there is a chance of divided by zero condition.Suppose,a equation with first co-efficient zero is placed at row one of matrix.If we want to make zero the first column second row element we get 'divided by zero' condition.It is not possible to make it zero by any matrix operation.What we can do,we can swap the maximum element row to first row.Exactly,what i have done in this code.
Maruf Ahamed (2021). Gauss Elimination with Partial Pivoting (https://www.mathworks.com/matlabcentral/fileexchange/66862-gauss-elimination-with-partial-pivoting), MATLAB Central File Exchange. Retrieved .
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!