<div dir="ltr"><div><div><div>Dear Alberto,<br><br></div>I don't think there's a 
built-in EEGLAB function for this, but it will be straightforward to do 
with basic MATLAB functions. Just depends on the file format you want. 
An EEG epoch is just a matrix of numbers (for example, if you had 30 
channels and sampled at 1000 Hz, then a 2-second epoch is a 30x2000 
sample matrix). MATLAB has functions like dlmwrite() that can be used to
 write a matrix out to a text file. After that it's just a matter of 
putting the function in a for loop to save each epoch one at a time.<br><br></div>Best,<br></div>Steve</div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><br></div><span><div>---<br></div>Stephen Politzer-Ahles<br>The Hong Kong Polytechnic University<br>Department of Chinese and Bilingual Studies<br><a href="http://www.mypolyuweb.hk/~sjpolit/" target="_blank">http://www.mypolyuweb.hk/~sjpolit/</a></span><a href="http://www.nyu.edu/projects/politzer-ahles/" target="_blank"></a></div></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">On Thu, Oct 13, 2016 at 5:41 PM, Alberto Cacciola <span dir="ltr"><<a href="mailto:alberto.cacciola0@gmail.com" target="_blank">alberto.cacciola0@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"><div><div><div><div>Dear all, <br><br></div>First of all, sorry if my question can be stupid. I searched on the previous messages of the mailing list but couldn't manage to find any solutions,<br><br>I am new with EEGlab. I splitted a resting state EEG in 2-s epochs as follow:<br><br>EEG = eeg_regepochs(EEG, 'recurrence', 2, 'limits', [0 2], 'rmbase', NaN);<br><br></div>and didn't encounter any problems. <br>Now I would like to save each epoch as a different file. For Instance, if I have 90 epochs of 2sec I would save each of the epoch as a .txt or .asc file, thus resulting in 90 independent files.<br>Is it possible? How should I proceed?<br><br></div>Many thanks for your help<span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888">Alberto<br><div><div><br><br><br></div></div></font></span></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>