Skip to content

Error in deleteTimSegments()  #1

@pb865

Description

@pb865

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions