ECE-GY 6113 (DSP 1)
60 Hz notch filter for ECG signal
The data file ecg2x60.txt contains ECG data recorded at a sampling rate of 200
samples per second. There is 60 Hz additive interference on the signal. In this exercise
you are to design a discrete-time LTI system to remove the 60 Hz interference and
apply the system to the data.
0 0.5 1 1.5 2
Time (sec)
-1
0
1
2
3
ECG with 60 Hz powerline interference
Part 1 (FIR Filter)
Design a filter implemented as a second-order non-recursive filter. This filter will be an
FIR filter (Finite-length Impulse Response filter).
Part 2 (IIR Filter)
Design a filter implemented as a second-order recursive filter. This filter will be an
IIR filter (Infinite-length Impulse Response filter).
For each part:
> Show the pole-zero diagram, frequency response, and impulse response of the filter.
> Show the output signal obtained by filtering the provided ECG signal.
> Does the filter remove the 60 Hz interference? Give comments on your results and
observations.
Part 3 (Compare)
Compare the frequency response of your IIR and FIR filters.
Compare the output signals produced by your IIR and FIR filters.