Communications Toolbox    
gfrank

Compute the rank of a matrix over a Galois field

Syntax

Description

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 p.

The output is below.


  gfprimfd gfrepcov