| Communications Toolbox | ![]() |
The code below defines a variable alph that represents a primitive element of the field GF(24).
m = 4; % Or choose any positive integer value of m. alph = gf(2,m) % Primitive element in GF(2^m)
The output is
alph = GF(2^4) array. Primitive polynomial = D^4+D+1 (19 decimal)
Array elements =
2
The Galois array alph represents a primitive element because of the correspondence between
The integer 2, specified in the gf syntax
The binary representation of 2, which is 10 (or 0010 using four bits)
The polynomial A + 0, where A is a primitive element in this field (or 0A3 + 0A2 + A + 0 using the four lowest powers of A)
| How Integers Correspond to Galois Field Elements | Primitive Polynomials and Element Representations | ![]() |
© 1994-2005 The MathWorks, Inc.