gfsub
Subtract polynomials over Galois field
Description
calculates c = gfsub(a,b,p) a minus b. a and
b can be represented as polynomial character vectors.
Note
This function performs computations in GF(pm), where p is
prime. To work in GF(2m), apply the -
operator to Galois arrays of equal size. For details, see Example: Addition and Subtraction.
subtracts row vectors and returns a row vector of length c = gfsub(a,b,p,len)len. The output
c is a truncated or extended representation of the answer. If the row
vector corresponding to the answer has fewer than len entries (including
zeros), extra zeros are added at the end; if it has more than len
entries, entries from the end are removed.
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. See Representing Elements of Galois Fields for an
explanation of these formats. If a and b are matrices
of the same size, the function treats each element independently.
Examples
Input Arguments
Output Arguments
Version History
Introduced before R2006a