[Eeglablist] Renaming events in EEGLAB – is modifying EEG.event.type enough?

Cedric Cannard ccannard at protonmail.com
Tue Nov 4 11:00:27 PST 2025


Hi Florencia,

If you are just renaming the events, it should be enough yes. Just make sure they are a character string.
And run this to check at the end:

EEG = eeg_checkset(EEG, 'eventconsistency');
EEG = eeg_checkset(EEG);

I can give a code template if needed. 

Cedric Cannard



On Tuesday, November 4th, 2025 at 8:16 AM, Florencia Sanmartino via eeglablist <eeglablist at sccn.ucsd.edu> wrote:

> Hi everyone,
> 
> 
> 
> I'm new to EEGLAB and would appreciate some guidance on how to safely
> rename events in a continuous dataset.
> 
> I imported a .mff file that contains multiple events, and I’d like to
> rename some of them based on participants’ responses (for instance, if an
> event is labelled DI50 and the participant responded incorrectly, I want to
> change it to DI56).
> 
> I tried doing this manually through Edit > Event values > type, but since
> 
> there are many events, I’d like to automate the process. I also tried
> exporting the events to a text file, editing it, and importing it back, but
> that caused import errors.
> 
> So, I’d like to rename the events directly in MATLAB. Is it sufficient to
> modify EEG.event.type directly in a script, or are there other fields or
> consistency checks I should run to make sure the dataset structure remains
> valid for later steps?
> 
> 
> 
> Thanks in advance.
> Florencia
> _______________________________________________
> 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