<div dir="ltr">Hi all,<div><br></div><div>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</div><div><br></div><div>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+.+</div><div><br></div><div>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? </div><div><br></div><div>Thanks a lot in advance for your help!</div><div><br></div><div>Best,</div><div>Anne</div></div>