Main Content

gffilter

Filter data using polynomials over prime Galois field

Description

y = gffilter(b,a,x) filters the data in vector x with the filter described by vectors b and a.

example

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).

Note

This function performs computations in GF(pm), where p is prime. To work in GF(2m), use the filter function with Galois arrays. For details, see Filtering.

Examples

collapse all

Define the input data sequence and the numerator denominator coefficients of the filter.

b = [1 0 0 1 0 1 0 1];
a = [1 0 1 1];
x = [1,zeros(1,19)];

Filter the input sequence.

y = gffilter(b,a,x)
y = 1×20

     1     0     1     0     1     0     1     0     1     1     1     0     0     1     0     1     1     1     0     0

Plot the result.

stem(y);
axis([0 20 -.1 1.1])

Figure contains an axes object. The axes object contains an object of type stem.

Input Arguments

collapse all

Input data to be filtered, specified as a row vector or a column vector.

Data Types: double

Numerator coefficients of the filter, specified as a row vector or a column vector.

Data Types: double

Denominator coefficients of the filter, specified as a row vector or a column vector.

Data Types: double

Prime number, specified as a scalar prime number.

Data Types: double

Output Arguments

collapse all

Filtered output data, returned as a row vector of the polynomial coefficients in order of ascending powers.

Version History

Introduced before R2006a

See Also

|