[Eeglablist] Regular expression to extract epochs from continuous EEG data

Makoto Miyakoshi mmiyakoshi at ucsd.edu
Thu Nov 26 16:13:09 PST 2015

Dear Anne,

> I would like to epoch all trials of condition 1 (con1) that are correct
(corr) and ignore all others.

1. Epoch the data using 'con1'
2. 'Edit' -> 'Select epochs or events', choose 'corr'. Beware of four
checkboxes at the bottom; I remember there was non-intuitiveness when I
used it.


On Fri, Oct 23, 2015 at 2:17 AM, Anne Mickan <amickan1990 at gmail.com> wrote:

> Hi all,
> I would like to extract and segment a subpart of trials from my continuous
> EEG data based on the marker names for the trials. My trial names are
> rather long and an example marker name would be
> this: S1_con1_sub1_corr_corrresp_Snr_12
> I would like to epoch all trials of condition 1 (con1) that are correct
> (corr) and ignore all others. I know I can describe the type of markers I
> want using the following regular expression: S1_con1_sub\d_corr_\w+.+
> I just don't know how to correctly embed this regular expression into the
> epoch() function in my Matlab script. I've tried a few things already, but
> nothing worked properly. My question is thus: How do I tell Matlab / EEGlab
> to go through the list of markers (i.e. trials/epochs) in the current
> dataset and to only select the ones fitting the above regexp string for
> epoching?
> Thanks a lot in advance for your help!
> Best,
> Anne
> _______________________________________________
> 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

Makoto Miyakoshi
Swartz Center for Computational Neuroscience
Institute for Neural Computation, University of California San Diego
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sccn.ucsd.edu/pipermail/eeglablist/attachments/20151126/ceb40524/attachment.html>

More information about the eeglablist mailing list