Notch Filter to remove noise from an ECG Signal
![Notch Filter to remove noise from an ECG Signal](/content/images/size/w960/2018/11/Screenshot-2018-11-07-at-9.35.57-AM-5.png)
This experiment is based on a question at the Lab Exam (EN1093).
According to the following difference equation which relates output (y[n]) and input (x[n]) we were asked to derive the transfer function H(z). This filter removes the 50Hz noise component.
download the ECG Signal distorted with noise
Pole-zero Plot
![](https://blog.ramith.fyi/static/content/images/2018/11/temp.png)
MATLAB code to implement the Notch Filter with the above characteristics
Implementation output ->
![](https://ramith.fyi/content/images/2018/11/Screenshot-2018-11-07-at-9.35.57-AM-4.png)
For Further reading:
https://en.wikibooks.org/wiki/Control_Systems/Poles_and_Zeros
http://web.mit.edu/2.14/www/Handouts/PoleZero.pdf
https://dsp.stackexchange.com/questions/6103/adding-noise-to-an-ecg-signal