Importing ECG to MATLAB: Tips for Signal Compression and Compatibility

  • Context: MATLAB 
  • Thread starter Thread starter lexy
  • Start date Start date
  • Tags Tags
    Matlab
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
6 replies · 26K views
lexy
Messages
2
Reaction score
0
hello,
I am working on a project of electrocardiographique (ECG) signal compression, in this way i need to download an ECG to treat it in MATLAB. The probleme that appears, is the incompatibility of ECG recording that i find in the "MIT-database ECG" with the MATLAB environement.

So i hope find some help by giving me,either an ECG recording with TEXT (.txt) format (because i know import it to MATLAB), or an advice to convert it.

Thank you.
(PS:sorry for my english!?)
 
Physics news on Phys.org
i've found the solution on the web

To read a binary data file (e.g. ecg.dat) from within MATLAB, you can use the provided program rdsign212 (download ‘rdsign212.m’ and ‘rdsign212.dll’ from homepage). Copy these two files into your MATLAB working directory. To read the first 10000 samples of a 2-lead ECG (file ecg.dat) and assign the data to a variable ecg, type the following in the MATLAB command window:

ecg = rdsign212('ecg.dat',2,1,1000)

You can get the syntax for the command rdsign212 by typing ‘help rdsign212’.
 
hello,
I am working on a project of electrocardiograph (ECG) signal compression, i need to download an ECG in MATLAB. The probleme that appears, is the incompatibility of ECG recording that i find in the "MIT-database ECG" with the MATLAB environement.

So i need the help of converting .dat file to .txt file,and using it in matlab
 
Hi
Where can i find the 'program' (the m file), rdsign212.m??
 
how to get .mat ecg signal
 
how to get .mat ecg signal
 
i have an ECG project and want to disply on matlab
so i first did the hadware part and i get the ECG signal on osciloscope as analog signal so i want to display this signal by using matlab
what are the procedures can i do?