[Eeglablist] changing event markers

Cedric Cannard ccannard at protonmail.com
Mon Jan 5 22:05:49 PST 2026


Hi,

Once your dataset is loaded in eeglab, simply do this:

for iEv = 1:length(EEG.event)
    if isequal(EEG.event(iEv).type, 222) || strcmp(EEG.event(iEv).type, '222')
        EEG.event(iEv).type = 233;
    end
end

% check event consistency
EEG = eeg_checkset(EEG, 'eventconsistency');


Cedric

Sent from Proton Mail for iOS.

-------- Original Message --------
On Sunday, 01/04/26 at 07:56 李美娇 via eeglablist <eeglablist at sccn.ucsd.edu> wrote:
Dear EEGlab users,

I have a question regarding changing event markers in my dataset. I want to batch modify my marker information. Specifically, I would like to change part of my reaction marker from 222 to 233. I have followed the manual and exported the data for modification before re-importing it back. However, I received an error code (EEGLAB error in function importevent() at line 204: Index exceeds the number of array elements). I would like to know how to batch modify the markers. I am using eeglab.2025.0.0. The data is from Brain Products.




_______________________________________________
To unsubscribe, send an empty email to eeglablist-unsubscribe at sccn.ucsd.edu or visit https://sccn.ucsd.edu/mailman/listinfo/eeglablist .



More information about the eeglablist mailing list