<div dir="ltr"><div class="gmail_default" style="color:#333399">Hi Eduardo,</div><div class="gmail_default" style="color:#333399"><br></div><div class="gmail_default" style="color:#333399">Just a quick note, hopefully this helps a little. James, let us know if I'm missing something here.</div>

<div class="gmail_default" style="color:#333399">After you add in your new events, make sure that the file is properly saved.</div><div class="gmail_default" style="color:#333399">try closing eeglab and then reopening it and the file in question with new events.</div>

<div class="gmail_default" style="color:#333399">If you see the new events in there that you generated, then they should</div><div class="gmail_default" style="color:#333399">continue to exist after any epoching procedures, including the use of regepoch.</div>

<div class="gmail_default" style="color:#333399">Also, it's not clear whether you previously "selected bad segments" or "added events"</div><div class="gmail_default" style="color:#333399">or both. Usually, just selecting periods of continuous data for deletion does not add events.</div>

<div class="gmail_default" style="color:#333399">Finally, I believe that the regepochs function works on continuous data.</div><div class="gmail_default" style="color:#333399">I recommend you cut into those epochs first using regepochs, and then do your manual </div>

<div class="gmail_default" style="color:#333399">or automatic cleaning procedures. </div><div class="gmail_default" style="color:#333399">Many users choose to cut their data into meaningful segments based on a specific trial event,</div>

<div class="gmail_default" style="color:#333399">but your data situation may be different, where you may be focusing </div><div class="gmail_default" style="color:#333399">on examining data that is not event-dependent or trial-based.</div>

<div class="gmail_default" style="color:#333399"><br></div><div class="gmail_default" style="color:#333399">Cheers!</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 class="gmail_extra"><br>
<br><br><div class="gmail_quote">On Mon, Dec 16, 2013 at 8:03 AM, Eduardo Schenberg <span dir="ltr"><<a href="mailto:edueeg@gmail.com" target="_blank">edueeg@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 style="word-wrap:break-word">Hello James,<div><br></div><div>Thank you very much for that. I have a very similar question as Taewon and this seems to work nice. </div><div><br></div><div>However, this code you sent using eeg_regepochs seems to discard previous events created in my EEGLab dataset when I manually selected bad segments of my continuous dataset for deletion (using the standard EEGLab GUI to plot, mark segments and delete). But it is important for me to still know where these events are before, for example, doing FFT on the segmented data</div>

<div><br></div><div>Do you know how to segment data in EEGLab keeping previous events on the dataset?</div><div><br></div><div>many thanks</div><div><br></div><div>eduardo</div><div><br></div><div><br><div><div>Em 26/11/2013, às 02:08, James Desjardins escreveu:</div>

<br><blockquote type="cite"><span style="border-collapse:separate;font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium"><div>

<div style="direction:ltr;font-size:10pt;font-family:Tahoma">Hi Chung,<br><br>There is no menu item for dividing the data into regular intervals yet, but the eeg_regepochs should do what you want from the command line.<br>

<br>The following should come pretty close to producing what you described:<br><br><font face="Courier New">EEG=eeg_regepochs(EEG,'recurrence',2,'limits',[-2 0]);<br>EEG=eeg_checkset(EEG);<br>eeglab redraw<br>

</font><div><br><div style="font-family:Tahoma;font-size:13px"><div><font><span style="font-size:10pt"><div>James Desjardins, MA<br>Electrophysiology Technologist<br>Cognitive and Affective Neuroscience Lab, Psychology Department<span> </span><br>

Jack and Nora Walker Centre for Lifespan Development Research<br>Brock University<br>500 Glenridge Ave.<br>St. Catharines, ON, Canada L2S 3A1<br><a href="tel:905-688-5550%20x4676" value="+19056885550" target="_blank">905-688-5550 x4676</a><br>

--<br>"'Cause you never can tell What goes on down below!<br>"This pool might be bigger Than you or I know!"<br><br>McElligot's Pool<br>Dr.Seuss 1947</div></span></font></div></div></div><div style="font-size:16px;font-family:'Times New Roman'">

<hr><div style="direction:ltr"><font color="#000000" face="Tahoma"><b>From:</b><span> </span><a href="mailto:eeglablist-bounces@sccn.ucsd.edu" target="_blank">eeglablist-bounces@sccn.ucsd.edu</a><span> </span>[<a href="mailto:eeglablist-bounces@sccn.ucsd.edu" target="_blank">eeglablist-bounces@sccn.ucsd.edu</a>] on behalf of Taewon Chung 정태원 [<a href="mailto:tchung215@gmail.com" target="_blank">tchung215@gmail.com</a>]<br>

<b>Sent:</b><span> </span>November-22-13 3:44 AM<br><b>To:</b><span> </span><a href="mailto:eeglablist@sccn.ucsd.edu" target="_blank">eeglablist@sccn.ucsd.edu</a><br><b>Cc:</b><span> </span>백연지<br><b>Subject:</b><span> </span>[Eeglablist] How to segment this continuous data into a regular time windows?<br>

</font><br></div><div></div><div><div dir="ltr">Dear all,<div><br></div><div>I have obtained single continuous EEG data,</div><div>and I want to know how to segment this continuous data into a regular time windows from the recording starting point (e.g. 0 ~ 2 sec, 2~ 4, 4 ~ 6, ...) regardless of event markers.</div>

<div>Is there any applicable menu in EEGLAB or function that I can use in the command line?</div><div>If there is, please let me know how to go about writing an appropriate script. </div><div><br></div><div>Thanks a lot in advance!</div>

<div><br></div><div>Taewon Chung</div></div></div></div></div>_______________________________________________<br>Eeglablist page:<span> </span><a href="http://sccn.ucsd.edu/eeglab/eeglabmail.html" target="_blank">http://sccn.ucsd.edu/eeglab/eeglabmail.html</a><br>

To unsubscribe, send an empty email to<span> </span><a href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu" target="_blank">eeglablist-unsubscribe@sccn.ucsd.edu</a><br>For digest mode, send an email with the subject "set digest mime" to<span> </span><a href="mailto:eeglablist-request@sccn.ucsd.edu" target="_blank">eeglablist-request@sccn.ucsd.edu</a></div>

</span></blockquote></div><br></div></div><br>_______________________________________________<br>
Eeglablist page: <a href="http://sccn.ucsd.edu/eeglab/eeglabmail.html" target="_blank">http://sccn.ucsd.edu/eeglab/eeglabmail.html</a><br>
To unsubscribe, send an empty email to <a href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu">eeglablist-unsubscribe@sccn.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.edu</a><br></blockquote></div><br></div></div>