Hi Angel,<div><br></div><div>I don't know if EEGLAB has built-in functions for this kind of export, but depending on the exact format you need (and whether it needs to be readable by some other software) you can do this on your own using basic MATLAB functions. The EEG data are in a variable called "EEG.data", which should be a 3-dimensional matrix of Channels x Samples x Trials, so you can use some MATLAB script to loop through the trials and for each trial write (to a text file) the voltages, as well as the trial information associated with that trial.</div>
<div><br></div><div>Best,</div><div>Steve Politzer-Ahles<br><br><div class="gmail_quote">On Tue, Jan 3, 2012 at 7:45 AM, Angel Tabullo <span dir="ltr"><<a href="mailto:angeltabullo@yahoo.com">angeltabullo@yahoo.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="color:#000;background-color:#fff;font-family:times new roman,new york,times,serif;font-size:12pt"><div style="font-family:'times new roman','new york',times,serif;font-size:12pt">
Hi there! I'm Angel Tabullo from Argentina, and I'm new to the list. I wanted to ask if anyone knows how can I export EEG and epoch data from EGGLAB to the same text file. EEGLAB generates a file with the following structure: </div>
<div style="font-family:'times new roman','new york',times,serif;font-size:12pt"><br></div><div><div><span style="font-family:'times new roman','new york',times,serif;white-space:pre-wrap">           </span><span style="font-family:'times new roman','new york',times,serif">       </span><span style="font-family:'times new roman','new york',times,serif;white-space:pre-wrap">                </span><span>FPz </span><span style="font-family:'times new roman','new york',times,serif;white-space:pre-wrap">      </span><span style="font-family:'times new roman','new york',times,serif">EOG1 </span><span style="font-family:'times new roman','new york',times,serif;white-space:pre-wrap">      </span><span style="font-family:'times new roman','new york',times,serif">F3 </span><span style="font-family:'times new roman','new york',times,serif;white-space:pre-wrap">        </span><span style="font-family:'times new roman','new york',times,serif">Fz </span><span style="font-family:'times new roman','new york',times,serif;white-space:pre-wrap">        </span><span style="font-family:'times new roman','new york',times,serif">F4 </span><span style="font-family:'times new roman','new york',times,serif;white-space:pre-wrap">        </span><span style="font-family:'times new roman','new york',times,serif">EOG2 </span><span style="font-family:'times new roman','new york',times,serif;white-space:pre-wrap">      </span><span style="font-family:'times new roman','new york',times,serif">FC5 </span><span style="font-family:'times new roman','new york',times,serif;white-space:pre-wrap">       </span><span style="font-family:'times new roman','new york',times,serif">FC1 ...</span><br>
</div><div><font face="'times new roman', 'new york', times, serif">−1000.0000<span style="white-space:pre-wrap"> </span> −1.1091 2.0509 0.1600 −0.1632 −0.4848 −1.3799 −0.0254 −0.4788 ...</font></div><div>
<font face="'times new roman', 'new york', times, serif">−992.1880<span style="white-space:pre-wrap"> </span> 0.6599 1.7894 0.3616 0.6354 0.8656 −2.9291 −0.0486 −0.4564
 ...</font></div><div><font face="'times new roman', 'new york', times, serif">−984.3761<span style="white-space:pre-wrap"> </span> 1.8912 1.3653 −0.6887 −0.0437 0.2176 −0.9767 −0.6973 −1.5856 ...</font></div>
<div><font face="'times new roman', 'new york', times, serif">−976.5641 <span style="white-space:pre-wrap">     </span>0.5129 −0.5399 −1.4076 −1.2616 −0.8667 −3.5189 −1.5411 −1.9671 ...</font></div><div><font face="'times new roman', 'new york', times, serif"><br>
</font></div><div><font face="'times new roman', 'new york', times, serif">But I need to create a text file that contains both epoch information (from individual trials) and EEG channel data and time:</font></div>
<div><font face="'times new roman', 'new york', times, serif"><br></font></div><div><span style="font-family:'times new roman','new york',times,serif"><span style="white-space:pre-wrap">        
        </span>   Trial N<span style="white-space:pre-wrap">           </span>Type<span style="white-space:pre-wrap">    </span><span style="white-space:pre-wrap">        </span></span><span style="font-family:'times new roman','new york',times,serif">FPz <span style="white-space:pre-wrap">   </span></span><span style="font-family:'times new roman','new york',times,serif;white-space:pre-wrap">      </span><span style="font-family:'times new roman','new york',times,serif">EOG1 </span><span style="font-family:'times new roman','new york',times,serif;white-space:pre-wrap">     </span><span style="font-family:'times new roman','new york',times,serif">F3 <span style="white-space:pre-wrap"> </span></span><span style="font-family:'times new roman','new york',times,serif;white-space:pre-wrap">      </span><span style="font-family:'times new roman','new york',times,serif">Fz </span><span style="font-family:'times new roman','new york',times,serif;white-space:pre-wrap">       </span>  <span style="font-family:'times new roman','new york',times,serif">F4<span style="white-space:pre-wrap">        </span></span><span style="font-family:'times new roman','new york',times,serif;white-space:pre-wrap">      </span><span style="font-family:'times new roman','new york',times,serif">EOG2 </span><span style="font-family:'times new roman','new york',times,serif;white-space:pre-wrap">     </span><span style="font-family:'times new roman','new york',times,serif">FC5 </span><span style="font-family:'times new roman','new york',times,serif;white-space:pre-wrap">      </span><span style="font-family:'times new roman','new york',times,serif">FC1 ...</span></div>
<div><span style="font-family:'times new roman','new york',times,serif">-100.000         1<span style="white-space:pre-wrap">         </span>Target<span style="white-space:pre-wrap">  </span></span><span style="font-family:'times new roman','new york',times,serif"> </span><span style="font-family:'times new roman','new york',times,serif">−1.1091 2.0509 0.1600 −0.1632 −0.4848 −1.3799 −0.0254 −0.4788 ...</span></div>
<div><span style="font-family:'times new roman','new york',times,serif">-992.1889<span style="white-space:pre-wrap">      </span>1<span style="white-space:pre-wrap">               </span>Target<span style="white-space:pre-wrap">  </span></span><span style="font-family:'times new roman','new york',times,serif"> 0.6599 <span style="white-space:pre-wrap">       </span>1.7894 0.3616  0.6354 0.8656 −2.9291 −0.0486 −0.4564 ...</span></div>
<div><span style="font-family:'times new roman','new york',times,serif">−984.3761<span style="white-space:pre-wrap">    </span>1<span style="white-space:pre-wrap">               </span>Target<span style="white-space:pre-wrap">  </span> 1.8912 1.3653 −0.6887 −0.0437 0.2176 −0.9767 −0.6973 −1.5856 ... <br>
</span></div><div><span style="font-family:'times new roman','new york',times,serif">...</span></div><div><span style="font-family:'times new roman','new york',times,serif">-100.000<span style="white-space:pre-wrap">            </span>2<span style="white-space:pre-wrap">               </span>Foil<span style="white-space:pre-wrap">            </span></span><span style="font-family:'times new roman','new york',times,serif"> </span><span style="font-family:'times new roman','new york',times,serif">1.8912 1.3653 −0.6887 −0.0437 0.2176 −0.9767 −0.6973 −1.5856 ...</span></div>
<div><span style="font-family:'times new roman','new york',times,serif">−992.1880<span style="white-space:pre-wrap">    </span>2<span style="white-space:pre-wrap">               </span>Foil <span style="white-space:pre-wrap">  </span><span style="white-space:pre-wrap">        </span>−984.33 1.8912 1.3653 −0.6887 −0.0437 0.2176 −0.9767 −0.6973 −1.5856 ... <br>
</span></div><div><span style="font-family:'times new roman','new york',times,serif"><br></span></div><div><span style="font-family:'times new roman','new york',times,serif"><br></span></div>
<div><span style="font-family:'times new roman','new york',times,serif">I guess I should be able to do it with a script, but I can't figure
 out how. Please excuse me if the question is too basic for the mailing list, but I've been reading the tutorial and help files and still can't figure out what commands functions to use. Thank you for your attention!</span></div>
</div></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><br clear="all"><div><br></div>
-- <br>Stephen Politzer-Ahles<br>University of Kansas<br>Linguistics Department<br><a href="http://www.linguistics.ku.edu/">http://www.linguistics.ku.edu/</a><br>
</div>