[Eeglablist] Version 2026 bug? Unable to rereference to the average reference and add back online ref

Miller, Carol Anne cam47 at psu.edu
Wed Jun 17 11:37:12 PDT 2026


I have encountered a problem similar to what Kelsey and Andrew described (prior to their posts). I was wondering if there have been any updates, like is it really a bug and if so has it been fixed?  Using Windows, EEGLAB 2025, Matlab 2024a.
Full disclosure: I have not yet tried Andrew's workaround but am hoping I won't have to!

Thanks,
Carol


Carol A. Miller, Ph.D.

Professor of Communication Sciences and Disorders and Linguistics

404K Ford Building

498 Allen Road

University Park, PA  16802

cam47 at psu.edu

Pronouns:  she/her

My work day may look different than your work day. Please do not feel any pressure to respond out of your normal working hours.

________________________________
From: eeglablist <eeglablist-bounces at sccn.ucsd.edu> on behalf of Andrew Corcoran via eeglablist <eeglablist at sccn.ucsd.edu>
Sent: Tuesday, May 19, 2026 5:14 AM
To: eeglablist at sccn.ucsd.edu <eeglablist at sccn.ucsd.edu>
Subject: [Eeglablist] Version 2026 bug? Unable to rereference to the average reference and add back online ref

I recently experienced a similar problem to Kelsey when trying to adapt some old code for new BioSemi data using EEGLAB 2026 in MATLAB 2025a.

With some playing around via the gui I managed to get things working as follows :

% import chanlocs & define chantype
EEG = pop_chanedit(EEG, {'lookup','standard_1005.elc'});

% assign ref
EEG = pop_reref( EEG, [ contains({EEG.chanlocs.labels}, {'Cz'} ) ] );

% reintroduce Cz & reref to common average
EEG = pop_chanedit(EEG, 'append', EEG.nbchan, 'changefield', {EEG.nbchan+1,'labels','Cz'}, ...
        'lookup', 'standard_1005.elc');

EEG = pop_reref( EEG, [], 'refloc', struct('labels',{'Cz'}, 'type',{'eeg'}, ...
        'theta',177.4959, 'radius',0.029055, 'X',-9.167, 'Y',-0.4009, 'Z',100.244, ...
        'sph_theta',-177.4959, 'sph_phi',84.77, 'sph_radius',100.6631, 'urchan',EEG.nbchan+1, ...
        'ref',{''}, 'datachan',0) );

While this code appears to function as intended, running it produces the following warning :
Warning: some channels have the same label

I cannot see any evidence of incorrect labelling despite the warning. Whatever the source of the issue, it appears to be the same problem as previously raised on this list by Raquel London https://urldefense.com/v3/__https://nam10.safelinks.protection.outlook.com/?url=https*3A*2F*2Fsccn.ucsd.edu*2Fpipermail*2Feeglablist*2F2016*2F011065.html&data=05*7C02*7Ccam47*40psu.edu*7C925cf2493b44435f40b108deb59e7799*7C7cf48d453ddb4389a9c1c115526eb52e*7C0*7C0*7C639147889381256261*7CUnknown*7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ*3D*3D*7C0*7C*7C*7C&sdata=dULJSVZlLGdsKJAWuaDiKUo40ZGZ2qMYOBRT9rZugks*3D&reserved=0__;JSUlJSUlJSUlJSUlJSUlJSUlJSUlJSUl!!Mih3wA!BKijivb65F94Fh3pakg9Ea433tP9cJtHZ8YhJahPfm_O_VMmOZ2TiTTMrpByWciehp1wSuW1rY3ZBfQjSWE$ <https://sccn.ucsd.edu/pipermail/eeglablist/2016/011065.html >  (I’m not sure if anyone got to the bottom of it).

Venlig hilsen
Andrew

Dr. Andrew W. Corcoran
Postdoctoral Researcher

Københavns Universitet
Institut for Idræt og Ernæring<https://urldefense.com/v3/__https://nam10.safelinks.protection.outlook.com/?url=https*3A*2F*2Furldefense.com*2Fv3*2F__https*3A*2F*2Fnexs.ku.dk*2F__*3B!!Mih3wA!CpsvdSQpAQtDgps7UcdHM6iIBWQoB77bprwNjhp1wo1SFvi8cNP0jI6p3Iqrle4fkR5Y6wFkqPX4w0blhx8-4g*24&data=05*7C02*7Ccam47*40psu.edu*7C925cf2493b44435f40b108deb59e7799*7C7cf48d453ddb4389a9c1c115526eb52e*7C0*7C0*7C639147889381286684*7CUnknown*7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ*3D*3D*7C0*7C*7C*7C&sdata=j9UJTHx1YLw4rDJQAFYZkyjyUZJ*2F1bep7sh*2Batgve34*3D&reserved=0__;JSUlJSUlJSUlJSUlJSUlJSUlJSUlJSUlJSUlJSUl!!Mih3wA!BKijivb65F94Fh3pakg9Ea433tP9cJtHZ8YhJahPfm_O_VMmOZ2TiTTMrpByWciehp1wSuW1rY3ZGofja5A$  >
Nørre Alle 51, 2100 København N

ORCID<https://urldefense.com/v3/__https://nam10.safelinks.protection.outlook.com/?url=https*3A*2F*2Furldefense.com*2Fv3*2F__https*3A*2F*2Forcid.org*2F0000-0002-0449-4883__*3B!!Mih3wA!CpsvdSQpAQtDgps7UcdHM6iIBWQoB77bprwNjhp1wo1SFvi8cNP0jI6p3Iqrle4fkR5Y6wFkqPX4w0YamDfcuw*24&data=05*7C02*7Ccam47*40psu.edu*7C925cf2493b44435f40b108deb59e7799*7C7cf48d453ddb4389a9c1c115526eb52e*7C0*7C0*7C639147889381317850*7CUnknown*7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ*3D*3D*7C0*7C*7C*7C&sdata=TnN3ow91f1Hos4pKjyq6lFAu*2BHHFxqqF2lejhYse94M*3D&reserved=0__;JSUlJSUlJSUlJSUlJSUlJSUlJSUlJSUlJSUlJSU!!Mih3wA!BKijivb65F94Fh3pakg9Ea433tP9cJtHZ8YhJahPfm_O_VMmOZ2TiTTMrpByWciehp1wSuW1rY3ZfLJABuE$  > | Google Scholar<https://urldefense.com/v3/__https://nam10.safelinks.protection.outlook.com/?url=https*3A*2F*2Furldefense.com*2Fv3*2F__https*3A*2F*2Fscholar.google.com*2Fcitations*3Fuser*3DyxKSfdsAAAAJ*26hl*3Den__*3B!!Mih3wA!CpsvdSQpAQtDgps7UcdHM6iIBWQoB77bprwNjhp1wo1SFvi8cNP0jI6p3Iqrle4fkR5Y6wFkqPX4w0YoPMVrKQ*24&data=05*7C02*7Ccam47*40psu.edu*7C925cf2493b44435f40b108deb59e7799*7C7cf48d453ddb4389a9c1c115526eb52e*7C0*7C0*7C639147889381355271*7CUnknown*7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ*3D*3D*7C0*7C*7C*7C&sdata=mgXXj*2B8gVbJu76tI9SISJ8cW7KU908TcaHE4GR*2B3YKg*3D&reserved=0__;JSUlJSUlJSUlJSUlJSUlJSUlJSUlJSUlJSUlJSUlJSUlJQ!!Mih3wA!BKijivb65F94Fh3pakg9Ea433tP9cJtHZ8YhJahPfm_O_VMmOZ2TiTTMrpByWciehp1wSuW1rY3ZupZp5yQ$  > | ResearchGate<https://urldefense.com/v3/__https://nam10.safelinks.protection.outlook.com/?url=https*3A*2F*2Furldefense.com*2Fv3*2F__https*3A*2F*2Fwww.researchgate.net*2Fprofile*2FAndrew-Corcoran-5*3Fev*3Dhdr_xprf__*3B!!Mih3wA!CpsvdSQpAQtDgps7UcdHM6iIBWQoB77bprwNjhp1wo1SFvi8cNP0jI6p3Iqrle4fkR5Y6wFkqPX4w0Z7fXbeKw*24&data=05*7C02*7Ccam47*40psu.edu*7C925cf2493b44435f40b108deb59e7799*7C7cf48d453ddb4389a9c1c115526eb52e*7C0*7C0*7C639147889381379877*7CUnknown*7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ*3D*3D*7C0*7C*7C*7C&sdata=0sHhrCY4hxA35xiVSiO47BbGWLDZebMVSNMSXZhJYco*3D&reserved=0__;JSUlJSUlJSUlJSUlJSUlJSUlJSUlJSUlJSUlJSUlJQ!!Mih3wA!BKijivb65F94Fh3pakg9Ea433tP9cJtHZ8YhJahPfm_O_VMmOZ2TiTTMrpByWciehp1wSuW1rY3ZJQ2RWWU$  > | Bluesky<https://urldefense.com/v3/__https://nam10.safelinks.protection.outlook.com/?url=https*3A*2F*2Furldefense.com*2Fv3*2F__https*3A*2F*2Fbsky.app*2Fprofile*2Fcorcorana.bsky.social__*3B!!Mih3wA!CpsvdSQpAQtDgps7UcdHM6iIBWQoB77bprwNjhp1wo1SFvi8cNP0jI6p3Iqrle4fkR5Y6wFkqPX4w0ZiEYOqIg*24&data=05*7C02*7Ccam47*40psu.edu*7C925cf2493b44435f40b108deb59e7799*7C7cf48d453ddb4389a9c1c115526eb52e*7C0*7C0*7C639147889381401413*7CUnknown*7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ*3D*3D*7C0*7C*7C*7C&sdata=GPuN*2FQE8LfaALmySXfTPFu9ntNBub5L1fX25BzduwJo*3D&reserved=0__;JSUlJSUlJSUlJSUlJSUlJSUlJSUlJSUlJSUlJSUl!!Mih3wA!BKijivb65F94Fh3pakg9Ea433tP9cJtHZ8YhJahPfm_O_VMmOZ2TiTTMrpByWciehp1wSuW1rY3Z2iWBOQ4$  > | GitHub<https://urldefense.com/v3/__https://nam10.safelinks.protection.outlook.com/?url=https*3A*2F*2Furldefense.com*2Fv3*2F__https*3A*2F*2Fgithub.com*2Fcorcorana*2F__*3B!!Mih3wA!CpsvdSQpAQtDgps7UcdHM6iIBWQoB77bprwNjhp1wo1SFvi8cNP0jI6p3Iqrle4fkR5Y6wFkqPX4w0ai24WmTw*24&data=05*7C02*7Ccam47*40psu.edu*7C925cf2493b44435f40b108deb59e7799*7C7cf48d453ddb4389a9c1c115526eb52e*7C0*7C0*7C639147889381422976*7CUnknown*7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ*3D*3D*7C0*7C*7C*7C&sdata=k1MTCOKVWPfG8CR5tM*2FH5cfYcMhfuAK4HDZva2wE9CM*3D&reserved=0__;JSUlJSUlJSUlJSUlJSUlJSUlJSUlJSUlJSUlJSUl!!Mih3wA!BKijivb65F94Fh3pakg9Ea433tP9cJtHZ8YhJahPfm_O_VMmOZ2TiTTMrpByWciehp1wSuW1rY3ZHK0wGEM$  > | OSF<https://urldefense.com/v3/__https://nam10.safelinks.protection.outlook.com/?url=https*3A*2F*2Furldefense.com*2Fv3*2F__https*3A*2F*2Fosf.io*2Fuser*2F6brd4__*3B!!Mih3wA!CpsvdSQpAQtDgps7UcdHM6iIBWQoB77bprwNjhp1wo1SFvi8cNP0jI6p3Iqrle4fkR5Y6wFkqPX4w0afWNNJiw*24&data=05*7C02*7Ccam47*40psu.edu*7C925cf2493b44435f40b108deb59e7799*7C7cf48d453ddb4389a9c1c115526eb52e*7C0*7C0*7C639147889381444348*7CUnknown*7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ*3D*3D*7C0*7C*7C*7C&sdata=M4j4hyGCIXqYG1PMJVSyksegUP3ZVEjg7fIq*2Bu069Ok*3D&reserved=0__;JSUlJSUlJSUlJSUlJSUlJSUlJSUlJSUlJSUlJSUl!!Mih3wA!BKijivb65F94Fh3pakg9Ea433tP9cJtHZ8YhJahPfm_O_VMmOZ2TiTTMrpByWciehp1wSuW1rY3ZXkPtXMY$  >

_______________________________________________
To unsubscribe, send an empty email to eeglablist-unsubscribe at sccn.ucsd.edu or visit https://urldefense.com/v3/__https://nam10.safelinks.protection.outlook.com/?url=https*3A*2F*2Fsccn.ucsd.edu*2Fmailman*2Flistinfo*2Feeglablist&data=05*7C02*7Ccam47*40psu.edu*7C925cf2493b44435f40b108deb59e7799*7C7cf48d453ddb4389a9c1c115526eb52e*7C0*7C0*7C639147889381629822*7CUnknown*7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ*3D*3D*7C0*7C*7C*7C&sdata=ezgoi93Jp*2B9dvacKwN*2FR*2BI2W*2B6vCD7cf*2BjJ3U7Qy79c*3D&reserved=0__;JSUlJSUlJSUlJSUlJSUlJSUlJSUlJSUlJSUlJQ!!Mih3wA!BKijivb65F94Fh3pakg9Ea433tP9cJtHZ8YhJahPfm_O_VMmOZ2TiTTMrpByWciehp1wSuW1rY3Z39VuwM8$ <https://sccn.ucsd.edu/mailman/listinfo/eeglablist >.


More information about the eeglablist mailing list