ECG Averaging in MATLAB

ECG Averaging in MATLAB
- Let me first explain in detail why we need to average an ECG signal and how we are gonna do that.
- Check ECG signal shown in below figure:
- In the above ECG signal, we can see there's a lot of noise in ECG waveform, which may affect our results so there's a need to apply some filters to smoothen out the ECG waveform.
- Another way of removing noise is ECG averaging.
- In ECG averaging technique, we cut signle ECG signal and then we extract all of our peaks.
- Finally we add them up and create an average waveform.
- I have shown this whole procedure in below figure:
- In the above figure, you pretty much got the idea behind this project.
- Now here's its MATLAB GUI, shown in below figure:
- It has two Containers at top and a full length Graph at the bottom.
- Now, when you Click the Button the it will ask for the ECG data file, as shown in below figure.
- Currently this project has eight data files with it and I have tested all of them and they are working quite fine.
- I have downloaded all the data files from Phsio Bank website. You can read its more details in ECG Simulation using MATLAB.
- Now when you will upload the files then it will take all the peaks and then will add them up one by one and will give you final output in the right container.
- The whole procedure for data1 is shown in below figure:
- I hope now you got the complete idea of its working but still if you have any questions then you can ask in comments and I will help you out.
- Here's the final look of this project:
- I have also created this video in which I have explained it in more detail and shown how it works.
- So, if you wanna buy this Project then I would suggest you to must watch this video before so that you got the complete idea of what you are buying.
- Here's the video for ECG Averaging in MATLAB:
×
![]()















































































