在研究TWA检测算法是用到WFDB软件包中的ecgpuwave函数,用来标定qrs波等,但是看不懂官网给出的例子和怎么调用该函数。求大神解释一下下面程序的意思,最好各个语句都解释一下。自己使用ecgpuwave函数时的调用格式是什么?
% %Example - Will go into the WFDB directory of examples to load data
curdir=pwd;
[~,config]=wfdbloadlib;eval(['cd ' config.WFDB_JAVA_HOME filesep 'example'])
ecgpuwave('100s','test');
[tm,signal]=rdsamp('100s');
pwaves=rdann('100s','test',[],[],[],'p');
plot(tm,signal(:,1));hold on;grid on
plot(tm(pwaves),signal(pwaves),'or')
cd(curdir) %CD back to current directory |