Implement infinite impulse response (IIR) filter
Motor Control Blockset / Signal Management
The IIR Filter block implements a discrete infinite impulse response (IIR) low pass filter on the specified input signal. The block supports fixed point and floating point data types.
The block uses this equation to implement the IIR filter:
where:
is the filter coefficient in the range (0, 1].
is the filtered output value at time .
is the filtered output value at time .
is the sampled input value at time .
You can define a filter coefficient in the block parameter. A lower filter coefficient gives better filtering, but it increases the delay in the response time.