Create Galois field array

`x_gf = gf(x,m) `

x_gf = gf(x,m,prim_poly)

x_gf = gf(x)

`x_gf = gf(x,m) `

creates a Galois field array
from the matrix `x`

. The Galois field has `2^m`

elements, where `m`

is an integer between 1 and 16. The elements of
`x`

must be integers between 0 and `2^m-1`

. The
output `x_gf`

is a variable that MATLAB recognizes as a Galois field
array, rather than an array of integers. As a result, when you manipulate
`x_gf`

using operators or functions such as `+`

or
`det`

, MATLAB works within the Galois field you have
specified.

To learn how to manipulate `x_gf`

using familiar MATLAB operators
and functions, see Galois Field Computations. To learn how the
integers in `x`

represent elements of GF(`2^m`

),
see How Integers Correspond to Galois Field Elements.

`x_gf = gf(x,m,prim_poly) `

is the same as the
previous syntax, except it uses the primitive polynomial `prim_poly`

to
define the field. `prim_poly`

is a polynomial character vector or
the integer representation of a primitive polynomial. For example, the number 37
represents the polynomial D^5+D^2+1 because the binary form of 37 is
1 0 0 1 0 1. For more information, see Default Primitive Polynomials.

`x_gf = gf(x) `

creates a GF(2) array from the
matrix `x`

. Each element of `x`

must be 0 or
`1`

.

`cosets`

| `gftable`

| `isprimitive`

| `primpoly`