ECG Analysis in MATLAB
7 views (last 30 days)
Show older comments
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
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.
Answers (1)
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
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?
See Also
Categories
Find more on Data Import and Analysis in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!