[Eeglablist] output file with epoch information included

Stephen Politzer-Ahles politzerahless at gmail.com
Thu Jan 5 12:47:20 PST 2012


Hi Angel,

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.

Best,
Steve Politzer-Ahles

On Tue, Jan 3, 2012 at 7:45 AM, Angel Tabullo <angeltabullo at yahoo.com>wrote:

> 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:
>
>         FPz EOG1 F3 Fz F4 EOG2 FC5 FC1 ...
> −1000.0000 −1.1091 2.0509 0.1600 −0.1632 −0.4848 −1.3799 −0.0254 −0.4788
> ...
> −992.1880  0.6599 1.7894 0.3616 0.6354 0.8656 −2.9291 −0.0486 −0.4564 ...
> −984.3761 1.8912 1.3653 −0.6887 −0.0437 0.2176 −0.9767 −0.6973 −1.5856 ...
> −976.5641 0.5129 −0.5399 −1.4076 −1.2616 −0.8667 −3.5189 −1.5411 −1.9671
> ...
>
> But I need to create a text file that contains both epoch information
> (from individual trials) and EEG channel data and time:
>
>    Trial N Type FPz  EOG1  F3  Fz    F4 EOG2  FC5  FC1 ...
> -100.000         1 Target  −1.1091 2.0509 0.1600 −0.1632 −0.4848 −1.3799
> −0.0254 −0.4788 ...
> -992.1889 1 Target  0.6599 1.7894 0.3616  0.6354 0.8656 −2.9291 −0.0486
> −0.4564 ...
> −984.3761 1 Target  1.8912 1.3653 −0.6887 −0.0437 0.2176 −0.9767 −0.6973
> −1.5856 ...
> ...
> -100.000 2 Foil  1.8912 1.3653 −0.6887 −0.0437 0.2176 −0.9767 −0.6973
> −1.5856 ...
> −992.1880 2 Foil  −984.33 1.8912 1.3653 −0.6887 −0.0437 0.2176 −0.9767
> −0.6973 −1.5856 ...
>
>
> 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!
>
> _______________________________________________
> Eeglablist page: http://sccn.ucsd.edu/eeglab/eeglabmail.html
> To unsubscribe, send an empty email to
> eeglablist-unsubscribe at sccn.ucsd.edu
> For digest mode, send an email with the subject "set digest mime" to
> eeglablist-request at sccn.ucsd.edu
>



-- 
Stephen Politzer-Ahles
University of Kansas
Linguistics Department
http://www.linguistics.ku.edu/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sccn.ucsd.edu/pipermail/eeglablist/attachments/20120105/d69ba321/attachment.html>


More information about the eeglablist mailing list