gfsub
R2026bSubtract polynomials over Galois field
Description
calculates c = gfsub(a,b,field)a minus b, where a and
b are the exponential format of two elements of
GF(pm), relative to
some primitive element of
GF(pm).
p is a prime number and m is a positive integer.
field is the matrix listing all elements of
GF(pm), arranged
relative to the same primitive element. c is the exponential format of
the answer, relative to the same primitive element. If a and
b are matrices of the same size, the function treats each element
independently.
Examples
Input Arguments
Output Arguments
Tips
For a description of the various formats that
gfsubuses, see Representing Elements of Galois Fields.This function performs computations in GF(
pm) wherepis a prime number. To work in GF(2m), you can also apply the – operator to Galois arrays of equal size. For details, see Example: Addition and Subtraction.
Version History
Introduced before R2006a