| Communications Toolbox | ![]() |
To compute the rank of a Galois array, use the rank function. It behaves like the ordinary MATLAB rank function when given exactly one input argument. The example below illustrates how to find the rank of square and nonsquare Galois arrays.
m = 3; asquare = gf([4 7 6; 4 6 5; 0 6 1],m); r1 = rank(asquare); anonsquare = gf([4 7 6 3; 4 6 5 1; 0 6 1 1],m); r2 = rank(anonsquare); [r1 r2]
The output is
ans =
2 3
The values of r1 and r2 indicate that asquare has less than full rank but that anonsquare has full rank.
| Inverting Matrices and Computing Determinants | Factoring Square Matrices | ![]() |
© 1994-2005 The MathWorks, Inc.