irfilter

Impulse response filter function.

Syntax

irfilter(dep_vec, FIR_coeffs, [,IIR_coeffs])

Argument

dep_vec
An input vector.
FIR_coeffs
A vector indicating the Finite Impulse Response filter coefficients.
[,IIR_coeffs]
An optional parameter, a vector, that specifies the Infinite Impulse Response filter coefficients.
If IIR coefficients are supplied, the leading term is assumed to be 1.

Example

Curve Math Vectors Result
x = c1.x

y = irfilter(c1.y,{1,3,5})

Given c1, a curve is created which is the original curve filtered using the filter specified by the coefficients.

Comments

The result is a vector with the same number of elements as dep_vec. The result is obtained by convolving the source data with the filter coefficients using the following equation: (1)

where:

ai is the ith value of the IIR coefficients

bi is the ith value of the FIR coefficients

N is the number of IIR coefficients

M is the number of FIR coefficients

a0 is assumed to equal 1 and is omitted from the IIR coefficient vector.