gfdiv
R2026bDivide elements of Galois field
Description
divides quot = gfdiv(b,a)b by a in GF(2) element-by-element. Each
entry in a and b represents an element of GF(2).
for more information, see Galois Field Entries.
divides quot = gfdiv(b,a,field)b by a in
GF(pm) and returns
the quotient. p is a prime number and m is a
positive integer. If a and b are matrices of the
same size, then the function treats each element independently. All entries of
b, a, and quot are the
exponential formats of elements of
GF(pm) relative to
some primitive element of
GF(pm).
field is the matrix listing all elements of
GF(pm), arranged
relative to the same primitive element.
Examples
Input Arguments
Output Arguments
More About
Tips
This function divides elements of a Galois field. In all cases, an attempt to divide by the zero element of the field results in a quotient,
quot, ofNaN.This function performs computations in GF(
pm), wherepis prime.To work in GF(2m), you can also apply the
./operator to Galois arrays. For more information, see Example: Division.
Version History
Introduced before R2006a