diff --git a/Functions/heplab_save_events.m b/Functions/heplab_save_events.m index 9f8812f..68a4625 100644 --- a/Functions/heplab_save_events.m +++ b/Functions/heplab_save_events.m @@ -24,7 +24,6 @@ [EEG.event(1,k+1:k+length(HEP.qrs)).type] = types{:}; % assign types [EEG.event(1,k+1:k+length(HEP.qrs)).urevent] = urevents{:}; % assign event index - % save new set [ALLEEG,EEG,CURRENTSET] = pop_newset(ALLEEG,EEG,CURRENTSET); clear k evt urevents types diff --git a/Functions/heplab_slowdetect.m b/Functions/heplab_slowdetect.m index e3a9055..5fd107e 100644 --- a/Functions/heplab_slowdetect.m +++ b/Functions/heplab_slowdetect.m @@ -49,7 +49,7 @@ % start slow algorith % find peak -step = 0.200*fs; +step = round(0.200*fs); area = 2*fs; ret = 0.160*fs;