<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Dear Andrew,<div><br></div><div>EEGLAB cannot import ASCII files directly with the channels in the first row or column. You have to remove them before importing the data, then add them back using the channel editor.</div><div>Best,</div><div><br></div><div>Arno</div><div><br><div><div>On Dec 12, 2013, at 3:30 PM, Makoto Miyakoshi <<a href="mailto:mmiyakoshi@ucsd.edu">mmiyakoshi@ucsd.edu</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><div dir="ltr"><div>Dear Andrew,</div><div><br></div><div>Try this code.</div><div><br></div><div>%%%%%%%%%%%%%%%%%%%%%%%%%%</div><div><br></div><div>% go to the folder where you have the file to import</div><div>input = dir('HW_*.txt');</div>
<div>input = <a href="http://input.name/">input.name</a>;</div><div><br></div><div>% open the file</div><div>FID = fopen(input);</div><div><br></div><div>% skip the first lines... by the way I found 19 channels, not 21</div>
<div>firstLine = fgetl(FID);</div><div><br></div><div>% parse data structure</div><div>tmpData = fscanf(FID, '%f');</div><div><br></div><div>% reshape</div><div>tmpData = reshape(tmpData, [19 length(tmpData)/19]);</div>
<div><br></div><div>% close the file</div><div>fclose(FID);</div><div><br></div><div>%%%%%%%%%%%%%%%%%%%%%%%%%%</div><div><br></div><div>The channels I found in the first line are:</div><div>FP1-LE<span class="" style="white-space:pre"> </span>FP2-LE<span class="" style="white-space:pre"> </span>F3-LE<span class="" style="white-space:pre"> </span>F4-LE<span class="" style="white-space:pre"> </span>C3-LE<span class="" style="white-space:pre"> </span>C4-LE<span class="" style="white-space:pre"> </span>P3-LE<span class="" style="white-space:pre"> </span>P4-LE<span class="" style="white-space:pre"> </span>O1-LE<span class="" style="white-space:pre"> </span>O2-LE<span class="" style="white-space:pre"> </span>F7-LE<span class="" style="white-space:pre"> </span>F8-LE<span class="" style="white-space:pre"> </span>T3-LE<span class="" style="white-space:pre"> </span>T4-LE<span class="" style="white-space:pre"> </span>T5-LE<span class="" style="white-space:pre"> </span>T6-LE<span class="" style="white-space:pre"> </span>Fz-LE<span class="" style="white-space:pre"> </span>Cz-LE<span class="" style="white-space:pre"> </span>Pz-LE</div>
<div><br></div><div>Then import 'tmpData' (which is 19*60000 double) to EEGLAB using import from variable.<br></div><div><br></div><div>Makoto</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
2013/12/12 Andrew Hill <span dir="ltr"><<a href="mailto:andrewhill@ucla.edu" target="_blank">andrewhill@ucla.edu</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi - hope someone can give me an idea what I'm doing wrong.. I'm trying to import the following txt file:<br>
<br>
<a href="https://dl.dropboxusercontent.com/u/5590246/HW_EC_12052013.txt.zip" target="_blank">https://dl.dropboxusercontent.com/u/5590246/HW_EC_12052013.txt.zip</a><br>
<br>
it's about 5mb, and contains 21 channels of data sampled at 200 hz.<br>
<br>
currently set up with electrodes as columns, and channel labels included, but i've tried importing with transposing electrodes to rows, and also tried both with and without labels..<br>
<br>
I assumed it would need to be "without labels and transposed", and when setting up that way it imports, but only shows 1 single channel (appending all electrodes into 1).<br>
<br>
any suggestions?<br>
<br>
<br>
thanks,<br>
andrew<br>
<br>
<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><div dir="ltr">Makoto Miyakoshi<br>Swartz Center for Computational Neuroscience<br>Institute for Neural Computation, University of California San Diego<br></div>
</div>
_______________________________________________<br>Eeglablist page: <a href="http://sccn.ucsd.edu/eeglab/eeglabmail.html">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></blockquote></div><br></div></body></html>