[Eeglablist] explanation about code and process automatation

Antonella Rosmino antonella.rosmino at unicampania.it
Wed Mar 12 22:51:16 PDT 2025


Good morning,
I had to make some changes in Eeglab for setting up the electrodes.
This is the code that was generated.

% EEGLAB history file generated on the 10-Mar-2025
% ------------------------------------------------
EEG = loadcurry('C:\Users\ROSMINO\Desktop\Artwork EEG\data 2\prac\sub002.cdt', 'KeepTriggerChannel', 'True', 'CurryLocations', 'False');
EEG.etc.eeglabvers = '2024.2'; % this tracks which version of EEGLAB is being used, you may ignore it
EEG = eeg_checkset(EEG);
EEG=pop_chanedit(EEG, 'append',64,'changefield',{65,'labels','VEOG'},'changefield',{62,'labels','M1'},'changefield',{62,'type','EEG'},'lookup','C:\\TOOLBOXMATLAB\\eeglab_current\\plugins\\dipfit5.5\\standard_BEM\\elec\\standard_1005.elc','setref',{'1:62','M1'},'settype',{'1:62','VEOG'},'setref',{'1:62','VEOG'},'delete',68,'delete',67,'delete',66);
EEG = pop_reref( EEG, [],'refloc',struct('labels',{'VEOG'},'type',{''},'theta',{[]},'radius',{[]},'X',{[]},'Y',{[]},'Z',{[]},'sph_theta',{[]},'sph_phi',{[]},'sph_radius',{[]},'urchan',{65},'ref',{''},'datachan',{0}),'exclude',[63 64] );
EEG = pop_reref( EEG, [53 62] ,'exclude',[63 64] );


I am completely unfamiliar with these tools. I would like if someone could:

1. tell me how to apply the new parameters to all the datasets I will have to import.
2. how to save this script, i.e. all the steps that will have to be carried out in an automated way?
3. would someone be so patient as to tell me what the code I have quoted says?


Thank you
Antonella




More information about the eeglablist mailing list