[Eeglablist] exporting single trial mean voltages

Stephen Politzer-Ahles spa268 at nyu.edu
Mon Mar 30 12:59:38 PDT 2015


Hi Angel,

I believe ERPLAB has built-in functions for this, but it's also pretty
straightforward to do straight out of EEGLAB with MATLAB code. Something
like this:

% specify the begin and end points of the time window of interest
time_window = [300 500];

% find the samples within this time window
samples = find( EEG.times>=time_window(1) & EEG.times<=time_window(2) );

% pull out the data from this range of samples, and average over samples
means = squeeze( mean( EEG.data( :, samples, : ), 2 ) );

% write the data out of MATLAB using a function like dlmwrite() or
xlswrite()
...

Best,
Steve




Stephen Politzer-Ahles
New York University, Abu Dhabi
Neuroscience of Language Lab
http://www.nyu.edu/projects/politzer-ahles/

On Mon, Mar 30, 2015 at 12:47 PM, Makoto Miyakoshi <mmiyakoshi at ucsd.edu>
wrote:

> Dear Angel,
>
> Although I have never tried myself, ERPLAB seems to support such a
> function. Did you check it?
>
> Makoto
>
> On Fri, Mar 27, 2015 at 5:17 AM, Angel Tabullo <angeltabullo at yahoo.com>
> wrote:
>
>> Hi everyone!
>>
>> This is a rather basic question, but I hope it will be easy to answer.
>> EEGLAB has a function to export voltage values for each time point of every
>> epoch, and it also allows to export the average of all epochs, for every
>> single time point. I'd like to ask you if there is a function (or script)
>> that would allow to export only mean voltage values within a specific
>> time-window (for instance, 300 - 500 ms) for every epoch.
>>
>> My goal is to analyze particular components (like N400) from a
>> psycholinguistics experiment with a regression model that includes factors
>> like word frequency, length, surprisal and sentence constraint strength and
>> entropy. Therefore, I need N400 measures for every sentence (epoch).
>>
>> Many thanks!
>>
>> Angel Tabullo
>>
>> _______________________________________________
>> 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
>>
>
>
>
> --
> Makoto Miyakoshi
> Swartz Center for Computational Neuroscience
> Institute for Neural Computation, University of California San Diego
>
> _______________________________________________
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sccn.ucsd.edu/pipermail/eeglablist/attachments/20150330/7d356d6b/attachment.html>


More information about the eeglablist mailing list