<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi there, I'm writing to the list to see if anyone has any advice on how best to export data from EEGLAB to Cartool...<div><br></div><div><a href="http://brainmapping.unige.ch/Cartool.htm">http://brainmapping.unige.ch/Cartool.htm</a><br><div><br></div><div>I have the data in a variety of forms in EEGLAB - continuous, epoched and averaged.  The best thing (I think) would be to export the continuous data in a format that Cartool can read, preferably a format that contains all the event onformation as well, like neuroscan .EEG (this is just one I know) or EDF.</div><div><br></div><div>I looked into it a bit, and discovered the Biosig toolbox distributed with EEGlab can read and write EDF, using the "ssave()" command. </div><div><br></div><div><blockquote type="cite" class=""><div><font class="Apple-style-span" color="#000000">help ssave</font></div><div><font class="Apple-style-span" color="#000000">  SSAVE saves signal data in various data formats</font></div><div><font class="Apple-style-span" color="#000000">  </font></div><div><font class="Apple-style-span" color="#000000">  Currently are the following data formats supported: </font></div><div><font class="Apple-style-span" color="#000000">     EDF, BDF, GDF, BKR, SND/AU, (WAV, AIF)</font></div><div><font class="Apple-style-span" color="#000000">     and WSCORE event file</font></div><div><font class="Apple-style-span" color="#000000"> </font></div><div><font class="Apple-style-span" color="#000000">  HDR = ssave(HDR,data);</font></div><div><font class="Apple-style-span" color="#000000">  HDR = ssave(FILENAME,data,TYPE,Fs);</font></div><div><font class="Apple-style-span" color="#000000"> </font></div><div><font class="Apple-style-span" color="#000000">  FILENAME      name of file</font></div><div><font class="Apple-style-span" color="#000000">  data  signal data, each column is a channel</font></div><div><font class="Apple-style-span" color="#000000">  TYPE </font><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" color="#000000">   </font></span><font class="Apple-style-span" color="#000000">determines dataformat</font></div><div><font class="Apple-style-span" color="#000000">  Fs</font><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" color="#000000">        </font></span><font class="Apple-style-span" color="#000000">sampling rate</font><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" color="#000000">   </font></span></div><div><font class="Apple-style-span" color="#000000"> </font></div><div><font class="Apple-style-span" color="#000000">  see also: ssave, sopen, swrite, sclose, doc/README</font></div></blockquote></div><div><br></div><div><br></div><div> Horay! But am I right in thinking this command will simply accept a matrix with rows=samples...  And no provision for events or epochs?  So I would have to firstly elect data by each stimulus type, and then export a version of [EEG.data] where all the epochs in the 3rd dimension were concatenated together, and then hope that there is some way to re-segment in cartool...</div><div><br></div><div>Then I searched my archives of eeglablist emails for a dim memory - the writecnt function.  This looks like it might do the trick, except that my data are already epoched, and there is no equivalent "writeeeg" to write a neuroscan epoched *.eeg file...</div><div><br></div><div>Any tips - has anyone opened ICA-filtered epochs from EEGLAB in Cartool before?</div><div><br></div><div>Thanks!</div><div><br></div><div><br></div><div><br></div><div>-hamish0</div><div><br></div><div><br></div></div></body></html>