Dear Expert:
I was wondering if there is a way to mark a same time window (e.g., 0 to 3 s) as the bad segment in all my subjects' raw MEG data at once? I can't find a script function for this process but I think this could be done automatically right? Thank you!
Open one of your files, create an event category BAD, and define the bad segment you want to add to all your files
In the Record tab, select the event BAD, menu File > Export selected events > save the events in any file format (Brainstorm events.mat is a safe option)
In the Process1 box, select all the files to which you want to add this bad event
Run process "Events > Import from file" and select the file you just created (for the Brainstorm file format, ignore the option "event name")