<div dir="ltr">Hi Nynke,<div><br></div><div>I don't know if there is a GUI function or not, but I always do this at the command line. Your .set file for each subject for each condition should have EEG.data, which is a 3-dimensional matrix (channels x samples x epochs).  Therefore,</div>
<div><br></div><div>erp = mean( EEG.data, 3 );</div><div><br></div><div>gives you the averaged ERP for that condition. And then you can use the same function to get the mean of a slice of that matrix. For example, something like this (I am assuming a certain pre-stimulus baseline, and assuming you sampled at 1000 Hz; if your sampling rate is different than 1000 Hz you may need to adjust a bit):</div>
<div><br></div><div>baseline = -200;</div><div>window = [300 500];</div><div>mean_amplitude = mean(  erp( :, (window(1)-baseline):(window(2)-baseline) ), 2 );</div><div><br></div><div>I think that should do it; you'll want to check to make sure it makes sense (e.g., mean amplitude should have as many rows as channels in your data, and only one column). Then you can use a simple loop to iterate through each subject and each condition, put all these means together into a matrix, and print them out into Excel or whatever other format you want to have them in for organizing them for SPSS. (If you are a hardcore programmer there is probably a faster and better way to get the means for every participant and every condition, but for the typical size of EEG datasets I find a series of simple For loops to work fine as well.)</div>
<div><br></div><div>Best,</div><div>Steve</div></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr"><div><br></div><div><br></div>Stephen Politzer-Ahles<br>New York University, Abu Dhabi<br>Neuroscience of Language Lab<br>
<a href="http://www.nyu.edu/projects/politzer-ahles/" target="_blank">http://www.nyu.edu/projects/politzer-ahles/</a><br></div></div>
<br><br><div class="gmail_quote">On Sat, Nov 30, 2013 at 11:18 PM, Laan, L.N. van der (Nynke) <span dir="ltr"><<a href="mailto:L.N.vanderLaan@uu.nl" target="_blank">L.N.vanderLaan@uu.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-CA" link="blue" vlink="purple">
<div style="direction:ltr;font-size:10pt;font-family:Arial">
<div style="font-size:16px;font-family:Times New Roman">
<div style="direction:ltr"><span style="color:rgb(31,73,125);font-family:Calibri,sans-serif;font-size:11pt">Hello all,</span></div>
<div>
<div>
<p class="MsoNormal"><span style="color:#1f497d"> </span></p>
<p class="MsoNormal"><span style="color:#1f497d">I am trying to calculate the mean value of an ERP over a specific timeframe (300-500 ms post stimulus (N400)), separately for each channel. But I can’t seem to find how to do that with EEGLab. I already used
 the averaging functions (e.g., <a href="http://cognitrn.psych.indiana.edu/busey/temp/eeglabtutorial4.301/maintut/data_averaging.html" target="_blank">
<span style="color:#1f497d">http://cognitrn.psych.indiana.edu/busey/temp/eeglabtutorial4.301/maintut/data_averaging.html</span></a>) for other purposes, but what I would like to have now is one mean value (potential) per subject per condition. I need to prepare
 the data for a colleague who is going to process the data further in SPSS. </span>
</p>
<p class="MsoNormal"><span style="color:#1f497d"> </span></p>
<p class="MsoNormal"><span style="color:#1f497d">I have epoched the datasets for all of my subjects and conditions (Subject1condA, subject2condB, etc.). What to do next?</span></p>
<p class="MsoNormal"><span style="color:#1f497d"> </span></p>
<p class="MsoNormal"><span style="color:#1f497d">Thanks in advance!</span></p>
<p class="MsoNormal"><span style="color:#1f497d"> </span></p>
<p class="MsoNormal"><span style="color:#1f497d">Best regards, </span></p>
<p class="MsoNormal"><span style="color:#1f497d">Nynke</span></p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
</div>
</div>
</div>
</div>
</div>

<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></div>