Gauss-Jordan Elimination with Partial Pivoting

Gauss-Jordan Elimination with Partial Pivoting
11K download
Aggiornato 14 mar 2006

Nessuna licenza

This file contains a function named "elimgauss03" which computes the reduced row echelon form of a matrix using gauss-jordan elimination with partial pivoting. As an attempt to minimize the number of calculations needed, the algorithm does not compute some unnecessary calculations.

For example, given the matrix
A =
16 2 3 13
5 11 10 8
9 7 6 12

The program would first divide the first row by 16. However, since this is done in order to make 1 the element A(1,1), the algorithm only computes A(1,2:end)=A(1,2:end)/A(1,1), and then makes A(1,1)=1.

Similarly, once the former operation is done, we will proceed to make more row operations until the first column of the matrix turns into [1; 0; 0]. The corresponding substractions are not computed, and the instruction A(2:end,1)=0 is used instead.

Thus, we have
» elimgauss03(A)
ans =
Columns 1 through 3
1 0 0
0 1 0
0 0 1
Column 4
1
3
-3

Cita come

Miguel D. B. (2025). Gauss-Jordan Elimination with Partial Pivoting (https://it.mathworks.com/matlabcentral/fileexchange/10318-gauss-jordan-elimination-with-partial-pivoting), MATLAB Central File Exchange. Recuperato .

Compatibilità della release di MATLAB
Creato con R11
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Versione Pubblicato Note della release
1.0.0.0