<div dir="ltr"><div class="gmail_default" style="color:#333399">Hello Luuk, some suggestions below. Best wishes.</div><div class="gmail_default" style="color:#333399"><br></div><div class="gmail_default" style="color:#333399">Examine the outputs of eegh after doing the time removal you want once via the gui for one file. </div><div class="gmail_default" style="color:#333399">You probably want to do this outside of study (ie before building your study).</div><div class="gmail_default" style="color:#333399">use what you get from eeg to make a script that does the following:</div><div class="gmail_default" style="color:#333399"><br></div><div class="gmail_default" style="color:#333399">1. Open a file</div><div class="gmail_default" style="color:#333399"><br></div><div class="gmail_default" style="color:#333399">2. Make a list of times to drop for each trial (ie, from the start of each trial to 1000 ms into each trial). (This can be determined by looping through each trial and getting a start/end time to drop or keep for each trial. then that info is given to the rejection function.</div><div class="gmail_default" style="color:#333399"><br></div><div class="gmail_default" style="color:#333399">3. Drops those times, leaving the data you want remaining (basically, drop all the times from all the trials all at once)</div><div class="gmail_default" style="color:#333399"><br></div><div class="gmail_default" style="color:#333399">4. Save the file</div><div class="gmail_default" style="color:#333399"><br></div><div class="gmail_default" style="color:#333399"><br></div><div class="gmail_default" style="color:#333399">Once you've determined your script is working correctly, then insert into loop that does it for all your files, loading/processing each one at a time.<br></div><div class="gmail_default" style="color:#333399">If you have a study loaded, you can alternatively loop/process/resave each loaded file, but I would recommend not doing the above loop on a set of loaded study files.</div><div class="gmail_default" style="color:#333399"><br></div><div class="gmail_default" style="color:#333399">A smarter but harder way would be to hack into the study data structure, but one needs to be an advanced eeglab and matlab user to do that.</div><div class="gmail_default" style="color:#333399"><br></div><div class="gmail_default" style="color:#333399">If you have some success, an example solution, or more questions, please let the list know so that other users can benefit from your experiences.</div><div class="gmail_default" style="color:#333399"><br></div><div class="gmail_default" style="color:#333399"><br></div><div class="gmail_default" style="color:#333399"><br></div><div class="gmail_default" style="color:#333399"><br></div><div class="gmail_default" style="color:#333399"><br></div><div class="gmail_default" style="color:#333399"><br></div><div class="gmail_default" style="color:#333399"><br></div><div class="gmail_default" style="color:#333399"><br></div><div class="gmail_default" style="color:#333399"><br></div><div class="gmail_default" style="color:#333399"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 1, 2018 at 9:53 AM, Luuk Lamens <span dir="ltr"><<a href="mailto:luuklamens94@gmail.com" target="_blank">luuklamens94@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">
<p class="MsoNormal">Dear Eeglab-community<br></p><p class="MsoNormal"><u></u> <u></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></u> <u></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></u> <u></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></u> <u></u></p><p class="MsoNormal">I hope you can help me, thanks in advance!<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">With kind regards,<u></u><u></u></p><p class="MsoNormal">Luuk Lamens<u></u><u></u></p><p class="MsoNormal">University of Amsterdam</p>

<br></div>
<br>______________________________<wbr>_________________<br>
Eeglablist page: <a href="http://sccn.ucsd.edu/eeglab/eeglabmail.html" rel="noreferrer" target="_blank">http://sccn.ucsd.edu/eeglab/<wbr>eeglabmail.html</a><br>
To unsubscribe, send an empty email to <a href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu">eeglablist-unsubscribe@sccn.<wbr>ucsd.edu</a><br>
For digest mode, send an email with the subject "set digest mime" to <a href="mailto:eeglablist-request@sccn.ucsd.edu">eeglablist-request@sccn.ucsd.<wbr>edu</a><br></blockquote></div><br></div>