How to read file '100.dat' and '100.atr' of MIT BIH DATABASE (PHYSIONET)?
이전 댓글 표시
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
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
채택된 답변
추가 답변 (3개)
Martin Paralic
2019년 1월 25일
편집: Martin Paralic
2019년 1월 25일
3 개 추천
% 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');
댓글 수: 1
Walter Roberson
2023년 1월 13일
That WFDB location appears to now redirect to
Vinícius
2013년 7월 30일
1 개 추천
댓글 수: 1
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
2015년 5월 10일
0 개 추천
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.
카테고리
도움말 센터 및 File Exchange에서 Low-Level File I/O에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!