How to read file '100.dat' and '100.atr' of MIT BIH DATABASE (PHYSIONET)?

28 ビュー (過去 30 日間)
Vinícius
Vinícius 2013 年 7 月 30 日
コメント済み: Walter Roberson 2023 年 1 月 13 日
Hi peoples,
I would like of know how do for read the files DATABASE (MIT BIH DATABASE). The own provides an script for read, but gives error. The script is: rddata.m site: http://www.physionet.org/physiotools/matlab/rddata.m. Could anyone help me?
Thanks
  1 件のコメント
Reid Kostenuk
Reid Kostenuk 2016 年 11 月 11 日
I had the same problem. You have to precisely specify the file path. You can read about specifying file paths here... https://www.mathworks.com/help/matlab/matlab_env/specify-file-names.html

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

採用された回答

per isakson
per isakson 2013 年 7 月 30 日
編集済み: per isakson 2013 年 7 月 30 日
Your question ought to include
  • a link to the data
  • details on the error
However, I downloaded the data (100.dat,100.atr,100.hea) and changed the line
PATH= 'M:\Profile\Desktop2k\MIT_CD\mitdb';
to match my download-folder. The program then worked nicely and produced a diagram.
  4 件のコメント
Explorer
Explorer 2015 年 4 月 27 日
You did not get my question. Anyway, I find the way to read downloaded database here
Susan
Susan 2022 年 8 月 8 日
編集済み: Susan 2022 年 8 月 8 日
@per isakson Could you please tell me in what function you set the PATH to the folder that contains the data (100.dat,100.atr,100.hea) ? By changing the path, do you mean changing
WFDB_PATH = []
in "wfdbloadlib.m" line 50 to
WFDB_PATH='M:\Profile\Desktop2k\MIT_CD\mitdb'
in your case?
I downloaded the data I want to read and exceuted the rdann.m file, However, I got the following error
Index exceeds Java array dimensions
Error in rdann (line 188)
str=char(data(1));
Any help would be greatly appreciated. Thanks in advance!

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

その他の回答 (3 件)

Martin Paralic
Martin Paralic 2019 年 1 月 25 日
編集済み: Martin Paralic 2019 年 1 月 25 日
% use WFDB Toolbox for MATLAB and Octave from
% https://www.physionet.org/physiotools/matlab/wfdb-app-matlab/
% First, ADD PATH in Matlab enviroment where your data are stored (100.dat, 100.hea, 100.atr)
% use function rdsamp() to read samples
% [signal,Fs,tm]=rdsamp(recordName,signaList,N,N0,rawUnits,highResolution)
[signal, fs, tm] = rdsamp('100');
% to read annotation use function rdann()
% [ann,anntype,subtype,chan,num,comments]=rdann(recordName, annotator, C, N, N0, AT)
[ann, anntype, subtype, chan, num, comments] = rdann('100','atr');

Vinícius
Vinícius 2013 年 7 月 30 日
Hi, the error that has been:
\n$> WORKING ON 100.hea ... ??? Error using ==> fgetl at 44 Invalid file identifier. Use fopen to generate a valid file identifier.
Error in ==> rddata at 38 z= fgetl(fid1);
  1 件のコメント
Matt Kindig
Matt Kindig 2013 年 7 月 31 日
Based on the error message, it sounds like fopen() failed. Are you sure that you're passing in the correct filename to fopen().
Try this:
dbstop if error %turn on breakpoints at error
and now run your code. What is the value of the filename variable passed into the fopen() statement? Is this a valid file? Remember, if the file is not local to your working directory or is not on your path, you need to include the full (absolute) path for the file.

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


laidi kamel
laidi kamel 2015 年 5 月 10 日
hi, i tried to read the files 100.data and 100.atr using the fucntion rddaat.m but it doesn't work . please if you can help me to read this file.

カテゴリ

Help Center および File ExchangeLarge Files and Big Data についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by