In these Codes, my main task was to design efficient digital filters to eliminate all the noise sources associated with the ECG signal so as to get a noise free ECG signal as output from the filters.
ECG inevitably affected by various types of noise interference such as:
- Baseline Wander noise
- Power Line Interference (50/60 Hz)
A 4th order Elliptic filter and a 4th order Chebyshev Type II configurations are found to be better choice for the implementation of high pass and Notch filters respectively.
-
Add path your corresponding directory
-
Add following files to this path:
- Chebyshev_II.m
- Elliptic.m
- Test.m
-
Add your noisy ecg signal to this directory. Note that your signal must be in .mat format.
-
Open Test.m file
-
Enter the name of your signal in the Load Signal section.
-
Use Notch function to filter 50 Hz powerline noise.
-
Use HPF function to filter baseline noise.
-
Run the code
-
Then you can see the result of filtering in the opened figures like fiugres shown below:
I hope this codes was useful for you. Any feedback to this filters design is warmly welcomed.