The document describes three experiments involving filtering and analyzing ECG and EEG signals:
1) Designs lowpass, highpass, and bandpass filters to filter an ECG signal and compares the filtered signals.
2) Draws the FFT plot of ECG and EEG signals to analyze their frequency spectra.
3) Designs bandpass filters to separate an EEG signal into delta, theta, alpha, beta, and gamma signals and plots the filtered signals.
It also describes identifying R peaks in an ECG signal using wavelet transform and a normal thresholding method.
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
45 views
Program
The document describes three experiments involving filtering and analyzing ECG and EEG signals:
1) Designs lowpass, highpass, and bandpass filters to filter an ECG signal and compares the filtered signals.
2) Draws the FFT plot of ECG and EEG signals to analyze their frequency spectra.
3) Designs bandpass filters to separate an EEG signal into delta, theta, alpha, beta, and gamma signals and plots the filtered signals.
It also describes identifying R peaks in an ECG signal using wavelet transform and a normal thresholding method.
L = 6000; % Length of signal t = (0:L-1)T; % Time vector
NFFT = 2^nextpow2(L); % Next power of 2 from length of y Y = fft(xn,NFFT)/L; f = Fs/2linspace(0,1,NFFT/2+1);
subplot(4,1,3); plot(xn); title('EEG Signal'); subplot(4,1,4); plot(f,mag2db(2abs(Y(1:NFFT/2+1)))) title('FFT of EEG');
%% Experiment No III % Design bandpass filters for filtering EEG signal(eeg signal.mat) % Importing the signal in the workspace load 'eeg signal'; subplot(4,2,1 2,); plot(xn); title('THE EEG SIGNAL');