Communications Toolbox    
gfrank

Compute the rank of a matrix over a Galois field

Syntax

Description

rk = gfrank(A) calculates the rank of the matrix A in GF(2).

rk = gfrank(A,p) calculates the rank of the matrix A in GF(p), where p is a prime number.

Algorithm

gfrank uses an algorithm similar to Gaussian elimination.

Examples

In the code below, gfrank says that the matrix A has less than full rank. This conclusion makes sense because the determinant of A is zero mod 2.

The output is below.

Notice that gflineq finds only the trivial solution to the equation A= 0, even though the output above implies that there are infinitely many other solutions.

See Also
gflineq


 gfprimfd gfrepcov