[Eeglablist] Plotting continuous data and event types not appearing

Cedric Cannard ccannard at protonmail.com
Mon Mar 27 09:45:47 PDT 2023


Hi Roberto,

I don't think this is possible via the GUI, but you can simply type this in command window (once your data are loaded in eeglab):

my_events = {EEG.event.type};
summary(categorical(my_events))  % displays count for each event type

Hope this helps. 

If you need to export the counts for a specific category, use:
idx = contains(my_events, 'event_type_of_interest');
count = sum(idx)

Then you can save the index of events of interest (variable 'idx') if you need or keep only these events, etc. Just change the name of the event type if you need to do this with other types. 

Cedric



------- Original Message -------
On Wednesday, March 22nd, 2023 at 1:12 AM, Roberto Petrosino <rp3650 at nyu.edu> wrote:


> Hello everyone,
> 
> I have imported some .vhdr file in EEGlab (v. 2023). I have two questions:
> 
> 1. When plotting the raw data, event types do not show up, even though they are listed and recognized (see screenshot below). Does anyone know what this may happen? I have been working with .vhdr files for a while now, and it never happened to me before. My lab has just changed device, so I was wondering if that could be the reason for this, and what is the solution for this (if any at all).
> 
> 2. Is there a way within EEGlab to count the number of stimulus types occurring in a given dataset? I could just export the event data and count types in R (or similar), but I was wondering if there is any GUI-based way to do this.
> 
> Thanks!
> 
> 
> —————
> Roberto Petrosino (he/him/his)
> Postdoctoral Associate
> Psychology, Division of Science
> New York University Abu Dhabi
> https://urldefense.com/v3/__https://robpetrosino.github.io__;!!Mih3wA!FSflv_ualv8jaUlpA450EBte9XMFMHaexiH4YbYm1UaVmB8jMkiY9ElJ9c61yvsNJrUcwyyrtSdfcqhWgNzlXg$ <https://urldefense.com/v3/__https://robpetrosino.github.io/__;!!Mih3wA!FSflv_ualv8jaUlpA450EBte9XMFMHaexiH4YbYm1UaVmB8jMkiY9ElJ9c61yvsNJrUcwyyrtSdfcqiFmV2qnw$ >
> 
> 
> 
> 
> 
> _______________________________________________
> 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