How can I plot annotation file from MIT-BIH Arathmia Data Base using Matlab ?
조회 수: 1 (최근 30일)
이전 댓글 표시
I am trying to plot the record 118 with annotations using matlab .. I am not sure how to use the WFDB toolbox? could any one explain by steps how to get the files and plot it in matlab ?
댓글 수: 0
답변 (1개)
Martin Paralic
2019년 1월 25일
편집: Martin Paralic
2019년 1월 25일
firstSample = 1;
lastSample = 3000;
% add the data path in to working space of matlab
% fulpath is not well supported
ecgFile = '100';
% physionet WFDB toolbox for Matlab - functions rdsamp(), rdann()
% read samples, firstSample and lastSample are optional parameters
[signal, fs, tm] = rdsamp(ecgFile,firstSample, lastSample);
% read annotations
[ann, anntype, subtype, chan, num, comments] = rdann(ecgFile,'atr', firstSample, lastSample);
% plots all channels
plot(signal)
hold on
% plots markers on annotation positions 'ann' as # of sample
% markers are adjusted to channel 1
plot(ann,signal(ann,1),'o');
% plots marker labels
text(ann,signal(ann,1), anntype);
hold off
댓글 수: 2
Theodora Chivu
2020년 11월 10일
편집: Theodora Chivu
2020년 11월 10일
How to plot in time domain without plotting 2 signals?
참고 항목
카테고리
Help Center 및 File Exchange에서 Annotations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!