MATLAB Importing ECG to MATLAB: Tips for Signal Compression and Compatibility

  • Thread starter Thread starter lexy
  • Start date Start date
  • Tags Tags
    Matlab
AI Thread Summary
The discussion centers on challenges related to importing ECG data into MATLAB for a project focused on ECG signal compression. Users are encountering compatibility issues with ECG recordings from the MIT database, specifically with binary data files (.dat). A solution provided involves using the rdsign212 program, which requires downloading the rdsign212.m and rdsign212.dll files and placing them in the MATLAB working directory. Users can then read ECG data by executing a specific command in MATLAB to access the desired samples. Additionally, there are inquiries about converting .dat files to .txt format for easier import into MATLAB and requests for guidance on displaying analog ECG signals captured from hardware on an oscilloscope using MATLAB. The conversation highlights the need for accessible tools and procedures for working with ECG data in MATLAB.
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?
 

Similar threads

Replies
2
Views
2K
Replies
6
Views
4K
Replies
1
Views
2K
Replies
1
Views
5K
Replies
15
Views
7K
  • Sticky
Replies
0
Views
4K
Replies
39
Views
14K
Back
Top