<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Dear Andreas,<div class=""><br class=""></div><div class="">thanks a lot for suggesting this solution. This does the job for me! 🙂</div><div class=""><br class=""></div><div class="">Best,</div><div class="">Sebastian<br class=""><div class="">
<div dir="auto" style="color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br class="Apple-interchange-newline">-----------</div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">Dr. Sebastian Sauppe</div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">Department of Comparative Linguistics, University of Zurich</div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">Homepage: <a href="https://sites.google.com/site/sauppes/" class="">https://sites.google.com/site/sauppes/</a></div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">Twitter: <a href="https://twitter.com/SebastianSauppe" class="">@SebastianSauppe</a></div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">Google Scholar Citations: <a href="https://scholar.google.de/citations?user=wEtciKQAAAAJ" class="">https://scholar.google.de/citations?user=wEtciKQAAAAJ</a> </div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">ResearchGate: <a href="http://www.researchgate.net/profile/Sebastian_Sauppe" class="">http://www.researchgate.net/profile/Sebastian_Sauppe</a></div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">ORCID ID: <a href="http://orcid.org/0000-0001-8670-8197" class="">http://orcid.org/0000-0001-8670-8197</a></div></div>
</div>
<div><br class=""><blockquote type="cite" class=""><div class="">Am 21.10.2018 um 08:05 schrieb Andreas Widmann <<a href="mailto:widmann@uni-leipzig.de" class="">widmann@uni-leipzig.de</a>>:</div><br class="Apple-interchange-newline"><div class=""><div class="">Hi Sebastian,<br class=""><br class="">on the command line it is possible to cut data the way yo describe. Here however, I do not think that this is actually necessary. If I correctly understand your description type 1 and type 2 events always come in pairs and you want to use the baseline of the type 1 event for each subsequent type 2 event. Why not epoching your data two times (from raw data or your long epochs), once for the type 1 events and once for the type 2 events and then copying the baseline interval from the first dataset to the second dataset? On the command line this breaks down to one line. Something like this should work:<br class=""><br class="">ALLEEG( 2 ).data( :, 1:100, : ) = ALLEEG( 1 ).data( :, 1:100, : );<br class="">[ ALLEEG EEG CURRENTSET ] = pop_newset( ALLEEG, EEG, CURRENTSET )<br class="">eeglab redraw<br class=""><br class="">Does this help? Best,<br class="">Andreas<br class=""><br class=""><blockquote type="cite" class="">Am 15.10.2018 um 22:49 schrieb Sebastian Sauppe <<a href="mailto:sauppe.s@gmail.com" class="">sauppe.s@gmail.com</a>>:<br class=""><br class="">Dear EEGLAB list members,<br class=""><br class="">is it possible to delete segments of data for already epoched data?<br class=""><br class="">I am trying to do a rather unconventional thing that, however, makes sense for my project. I have EEG data from an experiment where participants listened to sentences and I want to extract two different kinds of epochs (time locked to different points in the sentences). I first extracted epochs that are long enough to have all data points for both kinds of time-locking and used these epochs for ICA and artifact correction. These epochs are already time-locked to the first event of interest. The second event of interest occurs at different times in different epochs and I know how to shift the event markers so that I can time-lock to this second event.<br class=""><br class="">However, I need to take a segment before the first event as the baseline. When I simply shift the events with different latencies in different trials its not straightforward to keep the baseline segment. So I was thinking that the easiest way would be to just delete the data points between the first event and the second event so that the epoch goes from <br class=""><br class="">data_pre-event1<br class="">event1<br class="">data_between_event1_and_event2<br class="">event2<br class="">data_post-event2<br class=""><br class="">to<br class=""><br class="">data_pre-event1<br class="">event2<br class="">data_post-event2<br class=""><br class="">The resulting epochs would then all be of the same length again (200 ms baseline and 1000 ms after event2).<br class=""><br class="">I didn’t find any command that would accomplish this. Does anyone of you know how to cut out data points from epochs?<br class=""><br class="">Unfortunately, subtracting the baseline before shifting the event triggers is not an option because I want to follow Alday’s recommendation of not subtracting the baseline but including it as a predictor in a regression model (<a href="https://arxiv.org/abs/1707.08152" class="">https://arxiv.org/abs/1707.08152</a>).<br class=""><br class="">Regards,<br class="">Sebastian<br class=""><br class="">-----------<br class="">Dr. Sebastian Sauppe<br class="">Department of Comparative Linguistics, University of Zurich<br class="">Homepage: <a href="https://sites.google.com/site/sauppes/" class="">https://sites.google.com/site/sauppes/</a><br class="">Twitter: @SebastianSauppe<br class="">Google Scholar Citations: <a href="https://scholar.google.de/citations?user=wEtciKQAAAAJ" class="">https://scholar.google.de/citations?user=wEtciKQAAAAJ</a> <br class="">ResearchGate: <a href="http://www.researchgate.net/profile/Sebastian_Sauppe" class="">http://www.researchgate.net/profile/Sebastian_Sauppe</a><br class="">ORCID ID: <a href="http://orcid.org/0000-0001-8670-8197" class="">http://orcid.org/0000-0001-8670-8197</a><br class=""><br class="">_______________________________________________<br class="">Eeglablist page: <a href="http://sccn.ucsd.edu/eeglab/eeglabmail.html" class="">http://sccn.ucsd.edu/eeglab/eeglabmail.html</a><br class="">To unsubscribe, send an empty email to <a href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu" class="">eeglablist-unsubscribe@sccn.ucsd.edu</a><br class="">For digest mode, send an email with the subject "set digest mime" to <a href="mailto:eeglablist-request@sccn.ucsd.edu" class="">eeglablist-request@sccn.ucsd.edu</a><br class=""></blockquote><br class=""></div></div></blockquote></div><br class=""></div></body></html>