Skip to content
Snippets Groups Projects

changes to regepoch and con2epoch to drop less than 1 sec when epoching

2 files
+ 9
3
Compare changes
  • Side-by-side
  • Inline

Files

@@ -103,8 +103,8 @@ end
% calculate number of events to add
% ---------------------------------
bg = 0; % beginning of data
en = EEG.xmax; % end of data in sec
nu = floor(EEG.xmax/g.recurrence); % number of type 'X' events to add and epoch on
en = length(EEG.data); % end of data in sec
nu = floor(en/(g.recurrence*EEG.srate)); % number of type 'X' events to add and epoch on
% bg = EEG.event(1).latency/EEG.srate; % time in sec of first event
% en = EEG.event(end).latency/EEG.srate; % time in sec of last event
Loading