Gauss Jordan Implementation

This function will take a matrix designed to be used by the Gauss-Jordan algorithm and solve it.
1,9K download
Aggiornato 5 nov 2012

Visualizza la licenza

Gauss Jordan Implementation
By Khaled Sharif

Description:
This function will take a matrix designed to be used by the
Gauss-Jordan algorithm and solve it, returning a transposed
version of the last column in the ending matrix which
represents the solution to the unknown variables.

Input:
The function takes one matrix of n by n+1, where n equals
the number of unknown variables. Each row represents the
coefficients of the variables in each equation and the last
column contains the constants on the right hand side of
each equation.

Output:
The function will return a column vector representing
the solution to each variable in order of appearance in the
given matrix.

Sample Input:
x = [1 3 1 10; 1 -2 -1 -6; 2 1 2 10];
gauss(x)

Sample Output:
ans =

1.0000 2.0000 3.0000

Cita come

Khaled Sharif (2025). Gauss Jordan Implementation (https://it.mathworks.com/matlabcentral/fileexchange/38901-gauss-jordan-implementation), MATLAB Central File Exchange. Recuperato .

Compatibilità della release di MATLAB
Creato con R2009b
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