ECG Analysis in MATLAB

8 views (last 30 days)
Shannon Allen
Shannon Allen on 22 Feb 2019
Commented: Asad Mirza on 25 Feb 2019
I need help figuring out how to input an ECG trace into MATLAB so I can run FFT and AMSA on it during VF. I currently have PDF files of LifePak 15 defibrillator patient records. Is there any way to input these ECG traces into MATLAB either from the original PDFs or a different export feature on LifePak15?
  3 Comments
Shannon Allen
Shannon Allen on 22 Feb 2019
Edited: Shannon Allen on 22 Feb 2019
It has the waveforms as a graph (trace) (example below)ecg.jpg
Star Strider
Star Strider on 22 Feb 2019
If the EKG is an image, you would need to use image processing applications to digitize it, retaining the voltage and time calibrations. Search the File Exchange (link) for an appropriate function first, so you do not have to write it yourself.
If you can get numeric data from the defibrillator, importing it is easy.

Sign in to comment.

Answers (1)

Asad Mirza
Asad Mirza on 23 Feb 2019
It's a shame that the data is not a different color from the black grid lines. You should first use a program such as WebPlotDigitizer to extract the data from the graph. Another similar program that's MATLAB based instead is GRABIT.
Once you have the data on hand you could use some openly available MATLAB toolboxes to analyze and run the FFT on them such as plot-ecg or easily write your own using MATLAB's built in FFT function.
  2 Comments
Shannon Allen
Shannon Allen on 25 Feb 2019
Thanks, this was really helpful! I was able to extract the data from the waveform, but I am having trouble plotting the data using plot-ecg (I'm still relatively inexperienced with MATLAB) How can I plot my data set in the plot-ecg program?
Asad Mirza
Asad Mirza on 25 Feb 2019
The inputs you need should just be the time vector (x values) and the voltages (y values). Could you post the data for the graph you extracted?

Sign in to comment.

Tags

Products


Release

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!