Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rereferencing to mastoids after ICA #857

Open
jrook25 opened this issue Mar 19, 2025 · 0 comments
Open

Rereferencing to mastoids after ICA #857

jrook25 opened this issue Mar 19, 2025 · 0 comments

Comments

@jrook25
Copy link

jrook25 commented Mar 19, 2025

I'm trying to rereference my data from the original CPz electrode to an average of the mastoid electrodes (M1 + M2) in eeglab2025.0.0. Before rereferencing I have removed two components from my dataset with an ICA. I am working with a 64-channel cap. When trying to rereference, I get the following error:

EEGLAB error in function eeg_checkset() at line 1038:
Index in position 1 exceeds array bounds. Index must not exceed 62.

Or in the command window:
Index in position 1 exceeds array bounds. Index must not exceed 62.

Error in eeg_checkset (line 1038)
tmpact = (EEG.icaweightsEEG.icasphereEEG.data(EEG.icachansind,1:1000);

Error in pop_reref (line 383):
EEG = eeg_checkset(EEG);

Error in ERP_preproc_SA (line 54):
EEG = pop_reref(EEG, [13 19], 'exclude', excludedChannelsreref)

Do you know how to solve this issue? Many thanks in advance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant