MATLAB Answers

Loading ECG .dat file into matlab

29 views (last 30 days)
Raviteja on 17 Mar 2011
Edited: Walter Roberson on 20 Dec 2016
I want to load ECG data which consist s0010_re.dat file name.
I want to load into a variabl ECG_wave=load('s0010_re.dat')
>> ECG_wave=load('s0010_re.dat')
??? Error using ==> load
Unknown text on line number 1 of ASCII file
What is this error?
What I have to do to load this file.
Walter Roberson
Walter Roberson on 23 Jun 2011
Duplicate is at

Sign in to comment.

Answers (1)

Laura Proctor
Laura Proctor on 17 Mar 2011
This is a binary file, so you would need to use low-level functions such as fopen, fread, and fclose to get the data into MATLAB.
Even though FREAD will read in numeric data, it is important to understand how the data is encoded, or else the data you read in may not make sense.
You can learn more about file I/O at this link:

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!