Invalid expression. Check for missing or extra characters.
6 views (last 30 days)
Using the EKG simulator posted in eLearning, generate 20 cycles of the EKG waveform (when displaying the original, noisy or filtered signals in time-domain, show only two or three cycles).
(a) (10 points) Display the original EKG signal both in time-domain and frequency-domain.
(b) (10 points) Add the following two noises to the original signal: - a 60 Hz noise (with an amplitude of 1). - an additive white Gaussian noise (AWGN), i.e. independent and identically-distributed (i.i.d.) Gaussian random variables with 𝜇 = 0 and 𝜎 = 2. Display the noisy signal both in time-domain and frequency-domain.
(c) (20 points) Analyze the spectra of the original and noisy signals and design a suitable filter to extract the EKG signal from the noisy signal. Display the filter’s response. Display the filtered signal both in time-domain and frequency-domain.
DISP_ECG_COUNT = 1000;
L = 50;
ProjectPath = pwd;
ECGPath = strcat(ProjectPath,'\EKG_1.txt');
fpt_1 = fopen(ECGPath,'r');
A = fscanf(fpt_1,'%g');
No_of_Data = length(A);
x(r) = A(r,1);
title('Orignal ECG Signal Time Domain')