Show the required figures when r = 0:0.1:1 and comments on the effect of the pole position according to these figures. You can also choose some other r (at least five different r are required).
Baseline drift correction using de notch filter: Download the ECG data file ‘ecg_lfh.dat’. The sampling frequency is 1000 samples/second. Plot the ECG signal and observe the baseline drift. Design an order-1 recursive filter with a frequency response null at omega = 0, and a pole on the positive real axis. This system is a dc-notch filter. Apply your dc-notch filter to the ECG data to remove the baseline drift. Evaluate the effectiveness of the filter by overlaying the filtered signal with the original ECG signal in the same plot. Comment on the effect of the pole position. Hint: your filter transfer function will have the form of H(z) = (z-q)/(z-p). The zero should be q = 1. The pole should have a general form of p = r, with 0 < r < 1. You are asked to evaluate the effect of varying r. For each value of r, you should show the frequency response of your filter, and the overlay of the original signal with the filtered signal.
Show the required figures when r = 0:0.1:1 and comments on the effect of the pole position according to these figures. You can also choose some other r (at least five different r are required).
