From d939894fe0de540b27c329d46eafdd1ee8073057 Mon Sep 17 00:00:00 2001 From: Pandelis Perakakis Date: Thu, 7 Nov 2019 12:51:42 +0100 Subject: [PATCH] update heplab_slowdetect added round() line 52 --- Functions/heplab_save_events.m | 1 - Functions/heplab_slowdetect.m | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) 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;