Matlab interpretation array questions
조회 수: 2 (최근 30일)
이전 댓글 표시
Hi All,
I find and ECG signal generator code in matlab and I want to translate to my controller in C and some lines are unclear for me. Any help is welcome. What the below codes does ? 1) t_line=0:1/fs:duration; %time line, seconds fs and duration are constant values
2) QRS_wave=zeros( size(t_line) ); %QRS waveform is declared, but on the code I see referencies to QRS1=m2*index2time(i_t1:i_t2)-(m2*t1-left); QRSwave(i_t1:i_t2)=QRS1; What is QRS1 and what is QRSwave ? relation to QRS_wave ?
Thanks for anyone who can help ! Zoltan
댓글 수: 0
답변 (2개)
KSSV
2016년 11월 21일
I think you are talking about this code. https://www.physionet.org/physiotools/matlab/ECGwaveGen/ECGwaveGen.m
qrs_start=t1; % begining time
t2=t1+d1; % d1 = d1=0.4375*d; d can be changed
i_t1=time2index(t1); i_t2=time2index(t2); % change time to indices, this is a function given
left=0; right=0.875*amp;
m1=(right-left)/(t2-t1);
QRS1=m1*index2time(i_t1:i_t2)-(m1*t1-left); % picking times from the indices
QRSwave(i_t1:i_t2)=QRS1; % append first segment data to final result
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Continuous Waveforms에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!