<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=""><div>Hi Luuk,</div><div><br class=""></div><div>You can write MATLAB scripts. Here is the tutorial: <a href="https://sccn.ucsd.edu/wiki/Chapter_02:_Writing_EEGLAB_Scripts" class="">https://sccn.ucsd.edu/wiki/Chapter_02:_Writing_EEGLAB_Scripts</a></div><div><br class=""></div><div>I used to run all the processings manually by GUI only for a single subject, and then export what I did as a script using “File > History scripts > Save dataset history script”. You can then modify the script and run it on all datasets...</div><div><br class=""></div><div>To extract epochs and remove baseline you can use something like this:</div><div><br class=""></div><div>EEG = pop_epoch(EEG, {‘cond1’ 'cond2’}, [-1 2.5], 'epochinfo', 'yes');<br class="">EEG = eeg_checkset(EEG);<br class="">EEG = pop_rmbase(EEG, [-1000 0]);<br class="">EEG = eeg_checkset(EEG);</div><div><br class=""></div><div>Best,</div><div>Morteza</div><div><br class=""><blockquote type="cite" class=""><div class=""><span class="" style="font-family: -webkit-system-font, "Helvetica Neue", Helvetica, sans-serif; color: rgb(127, 127, 127);"><b class="">From: </b></span><span class="" style="font-family: -webkit-system-font, "Helvetica Neue", Helvetica, sans-serif;">Luuk Lamens <<a href="mailto:luuklamens94@gmail.com" class="">luuklamens94@gmail.com</a>></span><br class=""><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class=""><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(127, 127, 127, 1.0);" class=""><b class="">Subject: </b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class=""><b class="">[Eeglablist] Efficiently removing period of trials in complete study</b><br class=""></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class=""><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(127, 127, 127, 1.0);" class=""><b class="">Date: </b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">February 1, 2018 at 7:23:33 PM GMT+3:30<br class=""></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class=""><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(127, 127, 127, 1.0);" class=""><b class="">To: </b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class=""><a href="mailto:eeglablist@sccn.ucsd.edu" class="">eeglablist@sccn.ucsd.edu</a><br class=""></span></div><br class=""><br class=""><div dir="ltr" class=""><p class="MsoNormal">Dear Eeglab-community<br class=""></p><p class="MsoNormal"><u class=""></u> <u class=""></u></p><p class="MsoNormal">Currently I am perform EEG-analysis in eeglab and I am now facing a problem I could solve with a couple of hours work but
I am curious (and would be relieved) if there is a more efficient way.</p><p class="MsoNormal"><u class=""></u> <u class=""></u></p><p class="MsoNormal">I
have created a study of multiple datasets and each dataset consists of x
number of trials, each trial lasts 3.5s (1s pre-stimulus and 2.5
post-stimulus). Now is there an easy way to remove the first second of
each trial in all datasets in the whole study?</p><p class="MsoNormal"><u class=""></u> <u class=""></u></p><p class="MsoNormal">I could do it dataset by dataset with edit > select data function but this takes quite some time.</p><p class="MsoNormal"><u class=""></u> <u class=""></u></p><p class="MsoNormal">I hope you can help me, thanks in advance!<u class=""></u><u class=""></u></p><p class="MsoNormal"><u class=""></u> <u class=""></u></p><p class="MsoNormal">With kind regards,<u class=""></u><u class=""></u></p><p class="MsoNormal">Luuk Lamens<u class=""></u><u class=""></u></p><p class="MsoNormal">University of Amsterdam</p>
<br class=""></div>
<br class=""><br class="">_______________________________________________<br class="">eeglablist mailing list <a href="mailto:eeglablist@sccn.ucsd.edu" class="">eeglablist@sccn.ucsd.edu</a><br class="">Eeglablist page: <a href="http://www.sccn.ucsd.edu/eeglab/eeglabmail.html" class="">http://www.sccn.ucsd.edu/eeglab/eeglabmail.html</a><br class="">To unsubscribe, send an empty email to <a href="mailto:eeglablist-unsub@sccn.ucsd.edu" class="">eeglablist-unsub@sccn.ucsd.edu</a><br class="">To switch to non-digest mode, send an empty email to <a href="mailto:eeglablist-nodigest@sccn.ucsd.edu" class="">eeglablist-nodigest@sccn.ucsd.edu</a></div></blockquote></div><br class=""></body></html>