Loading ECG .dat file into matlab

12 ビュー (過去 30 日間)
Raviteja
Raviteja 2011 年 3 月 17 日
編集済み: Walter Roberson 2016 年 12 月 20 日
Hello,
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
C:\Users\Raviteja\Documents\MATLAB\s0010_re.dat
"þ6þ".
What is this error?
What I have to do to load this file.
  2 件のコメント
Raviteja
Raviteja 2011 年 3 月 17 日
File is available at
http://www.physionet.org/physiobank/database/ptbdb/patient001/
Walter Roberson
Walter Roberson 2011 年 6 月 23 日
Duplicate is at http://www.mathworks.com/matlabcentral/answers/3671-how-to-load-this-dat-file-into-matlab

サインインしてコメントする。

回答 (1 件)

Laura Proctor
Laura Proctor 2011 年 3 月 17 日
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:

カテゴリ

Help Center および File ExchangeAudio and Video Data についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by