ECG Annotation in matlab

조회 수: 1 (최근 30일)
Nour
Nour 2014년 1월 15일
Hello everyone,
How can I check the different annotation files of ECG database from physionet using matlab?
I have developed some algorithms to extract the peaks of T, P, and R waves. I need to check my results with what already they have in their website.
I found this code which returns back the R peaks. RECORD = 'nsrdb/16272' ANNOTATOR = 'atr'
% disp(['Loading 10 seconds of record ',RECORD,' ...']); data10 = rdsamp(RECORD, 'begin', '00:00:00', 'stop', '00:00:10');
% disp(['Loading 10 seconds of annotations from ',ANNOTATOR, ... ' for record ',RECORD,' ...']); anns10 = rdann(RECORD, ANNOTATOR, 'start', '00:00:00', 'stop', ... '00:00:10', 'concise');
% disp(['Finding the frequency of ',RECORD,' using wfdbdesc ...']); desc = wfdbdesc(RECORD, false); freq = desc.samplingFrequency;
% just a safety measure if freq == 0 freq = 1; end
% disp('Plotting the first signal in the record ...'); plot(data10(:,1)/freq, data10(:,2), 'b')
% disp('Plotting the annotations (as magenta diamonds) ...'); hold on; plot(anns10(:,2)/freq, data10(anns10(:,2)+1, 2), 'md', ... 'MarkerSize', 8); hold off;
% xlabel('time (s)'); ylabel('ECG amplitude (mV)'); legend('ECG', 'atr'); xlim()
What about if I want to check other features?
Any thoughts?

답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with Signal Processing Toolbox에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by