<html><body><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 class="Apple-tab-span" style="font-family: 'times new roman', 'new york', times, serif; white-space: pre; "> </span><span style="font-family: 'times new roman', 'new york', times, serif; "> </span><span class="Apple-tab-span" style="font-family: 'times new roman', 'new york', times, serif; white-space: pre; "> </span><span style="font-family: 'times new roman', 'new
york', times, serif; ">FPz </span><span class="Apple-tab-span" style="font-family: 'times new roman', 'new york', times, serif; white-space: pre; "> </span><span style="font-family: 'times new roman', 'new york', times, serif; ">EOG1 </span><span class="Apple-tab-span" style="font-family: 'times new roman', 'new york', times, serif; white-space: pre; "> </span><span style="font-family: 'times new roman', 'new york', times, serif; ">F3 </span><span class="Apple-tab-span" style="font-family: 'times new roman', 'new york', times, serif; white-space: pre; "> </span><span style="font-family: 'times new roman', 'new york', times, serif; ">Fz </span><span class="Apple-tab-span" style="font-family: 'times new roman', 'new york', times, serif; white-space: pre; "> </span><span style="font-family: 'times new roman', 'new york', times, serif; ">F4 </span><span class="Apple-tab-span" style="font-family: 'times new roman', 'new york', times, serif; white-space: pre;
"> </span><span style="font-family: 'times new roman', 'new york', times, serif; ">EOG2 </span><span class="Apple-tab-span" style="font-family: 'times new roman', 'new york', times, serif; white-space: pre; "> </span><span style="font-family: 'times new roman', 'new york', times, serif; ">FC5 </span><span class="Apple-tab-span" style="font-family: 'times new roman', 'new york', times, serif; white-space: pre; "> </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 class="Apple-tab-span" style="white-space:pre"> </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 class="Apple-tab-span" style="white-space:pre"> </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 class="Apple-tab-span" style="white-space:pre"> </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 class="Apple-tab-span" style="white-space:pre"> </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 class="Apple-tab-span" style="white-space:pre">
</span> Trial N<span class="Apple-tab-span" style="white-space:pre"> </span>Type<span class="Apple-tab-span" style="white-space:pre"> </span><span class="Apple-tab-span" style="white-space:pre"> </span></span><span style="font-family: 'times new roman', 'new york', times, serif; ">FPz <span class="Apple-tab-span" style="white-space:pre"> </span></span><span class="Apple-tab-span" style="font-family: 'times new roman', 'new york', times, serif; white-space: pre; "> </span><span style="font-family: 'times new roman', 'new york', times, serif; ">EOG1 </span><span class="Apple-tab-span" style="font-family: 'times new roman', 'new york', times, serif; white-space: pre; "> </span><span style="font-family: 'times new roman', 'new york', times, serif; ">F3 <span class="Apple-tab-span" style="white-space:pre"> </span></span><span class="Apple-tab-span" style="font-family: 'times new roman', 'new york', times, serif; white-space:
pre; "> </span><span style="font-family: 'times new roman', 'new york', times, serif; ">Fz </span><span class="Apple-tab-span" style="font-family: 'times new roman', 'new york', times, serif; white-space: pre; "> </span> <span style="font-family: 'times new roman', 'new york', times, serif; ">F4<span class="Apple-tab-span" style="white-space:pre"> </span></span><span class="Apple-tab-span" style="font-family: 'times new roman', 'new york', times, serif; white-space: pre; "> </span><span style="font-family: 'times new roman', 'new york', times, serif; ">EOG2 </span><span class="Apple-tab-span" style="font-family: 'times new roman', 'new york', times, serif; white-space: pre; "> </span><span style="font-family: 'times new roman', 'new york', times, serif; ">FC5 </span><span class="Apple-tab-span" style="font-family: 'times new roman', 'new york', times, serif; white-space: pre; "> </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 class="Apple-tab-span" style="white-space:pre"> </span>Target<span class="Apple-tab-span" style="white-space:pre"> </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 class="Apple-tab-span" style="white-space:pre"> </span>1<span class="Apple-tab-span" style="white-space:pre"> </span>Target<span class="Apple-tab-span" style="white-space:pre"> </span></span><span style="font-family: 'times new roman', 'new york', times, serif; "> 0.6599 <span class="Apple-tab-span"
style="white-space:pre"> </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 class="Apple-tab-span" style="white-space: pre; "> </span>1<span class="Apple-tab-span" style="white-space: pre; "> </span>Target<span class="Apple-tab-span" style="white-space: pre; "> </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 class="Apple-tab-span" style="white-space:pre"> </span>2<span class="Apple-tab-span" style="white-space:pre"> </span>Foil<span class="Apple-tab-span" style="white-space:pre"> </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 class="Apple-tab-span" style="white-space:pre"> </span>2<span class="Apple-tab-span" style="white-space:pre"> </span>Foil <span class="Apple-tab-span" style="white-space:pre"> </span><span class="Apple-tab-span" style="white-space:pre"> </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></body></html>