-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Hello!
I have a script in which I am trying to identify 10-second periods that have none of the ten event codes in my EEG file to remove, retaining the 500ms period before and 800ms after the instance of an event code.
Here is my line of code:
EEG = pop_erplabDeleteTimeSegments(EEG, 'timeThresholdMS',10000, 'beforeEventcodeBufferMS', 500, 'afterEventcodeBufferMS', 800, 'ignoreUseEventcodes', [1:10], 'ignoreUseType', 'use', 'ignoreBoundary', 0, 'displayEEG', true);
This is the error that I get:
Index exceeds the number of array elements. Index must not exceed 0.
Error in erplab_deleteTimeSegments (line 164)
if analyzedSamples(1) ~= 1
Error in pop_erplabDeleteTimeSegments (line 252)
outputEEG = erplab_deleteTimeSegments(EEG ...
Does anyone know why this is?
Thanks in advance.