Communications Toolbox    
gftrunc

Minimize the length of a polynomial representation

Syntax

Description

c = gftrunc(a) truncates a row vector, a, that gives the coefficients of a GF(p) polynomial in order of ascending powers. If a(k) = 0 whenever k > d + 1, then the polynomial has degree d. The row vector c omits these high-order zeros and thus has length d + 1.

Examples

In the code below, zeros are removed from the end, but not from the beginning or middle, of the row-vector representation of x2 + 2x3 + 3x4 + 4x7 + 5x8.

See Also
gfadd, gfsub, gfconv, gfdeconv, gftuple


  gftable gftuple