Importing ECG to MATLAB: Tips for Signal Compression and Compatibility

  • Context: MATLAB 
  • Thread starter Thread starter lexy
  • Start date Start date
  • Tags Tags
    Matlab
Click For Summary

Discussion Overview

The discussion revolves around the challenges of importing electrocardiographic (ECG) data into MATLAB for signal compression projects. Participants seek solutions for compatibility issues with different ECG file formats, specifically from the MIT database, and inquire about methods to convert these files for use in MATLAB.

Discussion Character

  • Technical explanation
  • Homework-related
  • Debate/contested

Main Points Raised

  • One participant expresses difficulty in importing ECG recordings from the MIT database into MATLAB due to format incompatibility and requests either a .txt format ECG file or advice on conversion methods.
  • Another participant suggests using the rdsign212 program to read binary ECG data files in MATLAB, providing a specific command to read samples from a .dat file.
  • A different participant reiterates the need for converting .dat files to .txt files for MATLAB compatibility.
  • Several participants inquire about the location of the rdsign212.m file needed for the suggested solution.
  • One participant asks about obtaining ECG signals in .mat format for use in MATLAB.
  • Another participant describes their project involving hardware to capture ECG signals and seeks guidance on displaying these signals in MATLAB.

Areas of Agreement / Disagreement

Participants do not appear to reach a consensus on the best method for importing ECG data into MATLAB, with multiple approaches and requests for information being presented.

Contextual Notes

Participants express uncertainty regarding the availability of specific files and methods for conversion, indicating a reliance on external resources and tools that may not be universally accessible.

Who May Find This Useful

This discussion may be useful for individuals working on ECG signal processing projects, particularly those using MATLAB and facing challenges with data format compatibility.

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 ·
Replies
2
Views
2K
  • · Replies 6 ·
Replies
6
Views
5K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
5K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 15 ·
Replies
15
Views
7K
  • · Replies 3 ·
Replies
3
Views
2K
  • Sticky
  • · Replies 0 ·
Replies
0
Views
4K
  • · Replies 39 ·
2
Replies
39
Views
15K
Replies
2
Views
3K