[Eeglablist] Removing event values

Cedric Cannard ccannard at protonmail.com
Thu Sep 2 10:40:59 PDT 2021


Hi Kaelasha,

If you do it manually in GUI and then type eegh in Matlab, you'll get the command line to do it automatically in your script.

And to create an index of the events you want to remove, you can do something like this:
bad_events = contains({EEG.event.type}, {'synch on' 'synch off'})
EEG = pop_editeventvals(EEG,'delete', find(bad_events));

Cedric

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐

On Thursday, September 2nd, 2021 at 4:08 AM, Kaelasha Tyler via eeglablist <eeglablist at sccn.ucsd.edu> wrote:

> Hi all,
>
> How do I automatically remove all of a certain type of event values from
>
> EEG data in EEGlab?
>
> I have an EEG data set which for some reason has been recorded with extra
>
> event values, in this case 'synch on' and 'sync off'.
>
> This is crashing my analysis script.
>
> I want to find a way, with the gui or script to automatically remove all
>
> event values of the type 'synch on' and 'synch off.
>
> Obviously I can do this for each value with the gui. But this requires
>
> manually going through every event and deleting it. There are many events,
>
> so this will take too long.
>
> Thanks in advance.
>
> Kaelasha
>
> Eeglablist page: http://sccn.ucsd.edu/eeglab/eeglabmail.html
>
> To unsubscribe, send an empty email to eeglablist-unsubscribe at sccn.ucsd.edu
>
> For digest mode, send an email with the subject "set digest mime" to eeglablist-request at sccn.ucsd.edu


More information about the eeglablist mailing list