Skip to content

Bug in tesa_compselect.m #10

@JonteP

Description

@JonteP

I ran into a small issue when calling tesa_compselect. Apparently, it assumes that the first field of 'EEG.chanlocs' is 'labels', however in my case it is the third. The below change fixes this issue and should be safer:

Change any instance of
e = struct2cell(EEG.chanlocs);
elec = squeeze(e(1,1,:));

to
elec = {EEG.chanlocs.labels}';

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions