0% found this document useful (0 votes)
880 views1 page

How To Read A .Dat File in Matlab

To read binary data files like ECG data in MATLAB, use the rdsign212 program by copying the rdsign212.m and rdsign212.dll files to your MATLAB directory. You can then read the first 10000 samples of a 2-lead ECG from the ecg.dat file into a variable called ecg by typing ecg = rdsign212(ecg.dat, 2, 1, 1000) in the command window.

Uploaded by

abishus
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
880 views1 page

How To Read A .Dat File in Matlab

To read binary data files like ECG data in MATLAB, use the rdsign212 program by copying the rdsign212.m and rdsign212.dll files to your MATLAB directory. You can then read the first 10000 samples of a 2-lead ECG from the ecg.dat file into a variable called ecg by typing ecg = rdsign212(ecg.dat, 2, 1, 1000) in the command window.

Uploaded by

abishus
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

To read a binary data file (e.g. ecg.

dat) from within MATLAB, you can use the pr ovided program rdsign212 (download rdsign212.m and rdsign212.dll from homepage). Cop y these two files into your MATLAB working directory. To read the first 10000 sa mples 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.

You might also like