An ECG signal (this will be available from a standard database) sampled at 250 Hz for a period
of 8 seconds (length 2000 samples)has been corrupted with a white Gaussian noise, a sinusoidal
powerline interference of 50 Hz, respiratory signal of 0.3 Hz. Using MATLAB, design an FIR
filter to remove this interferences. What does the filtered ECG signal look like? Plot the ECG
Signal before and after filtering, the frequency response of the designed filter and the ECG
spectrum before and after filtering.
1- Generate a uniform noise z[n] using MATLAB and the function