| Communications Toolbox | ![]() |
Filter data using polynomials over a prime Galois field
Syntax
Description
Note
This function performs computations in GF(pm) where p is odd. To work in GF(2m), use the filter function with Galois arrays. For details, see Filtering.
|
y = gffilter(b,a,x,p)
filters the data x using the filter described by vectors a and b. y is the filtered data in GF(p). p is a prime number, and all entries of a and b are between 0 and p-1.
By definition of the filter, y solves the difference equation
A+1 is the length of the vector a
B+1 is the length of the vector b
n varies between 1 and the length of the vector x.
The vector a represents the degree-na polynomial
Examples
The impulse response of a particular filter is given in the code and diagram below.
b = [1 0 0 1 0 1 0 1]; a = [1 0 1 1]; y = gffilter(b,a,[1,zeros(1,19)]); stem(y); axis([0 20 -.1 1.1])
See Also
gfconv, gfadd, filter
| gfdiv | gflineq | ![]() |