<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:14px"><div id="yui_3_16_0_1_1427748494099_10117" dir="ltr">Many many thanks! I was aware of the erplab function I was just trying to decide which would be the fastest way to do it. I did not find a specific function in eeglab to calculate single trial erps in specific windows, though.</div>  <br><div class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" style="display: block;"> <div style="font-family: times new roman, new york, times, serif; font-size: 14px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div dir="ltr"> <font size="2" face="Arial"> El Lunes, 30 de marzo, 2015 16:59:39, Stephen Politzer-Ahles <spa268@nyu.edu> escribió:<br> </font> </div>  <br><br> <div class="y_msg_container"><div id="yiv1744850727"><div><div dir="ltr">Hi Angel,<div><br clear="none"></div><div>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:</div><div><br clear="none"></div><div>% specify the begin and end points of the time window of interest</div><div>time_window = [300 500];</div><div><br clear="none"></div><div>% find the samples within this time window</div><div>samples = find( EEG.times>=time_window(1) & EEG.times<=time_window(2) );</div><div><br clear="none"></div><div>% pull out the data from this range of samples, and average over samples</div><div>means = squeeze( mean( EEG.data( :, samples, : ), 2 ) );</div><div><br clear="none"></div><div>% write the data out of MATLAB using a function like dlmwrite() or xlswrite()</div><div>...</div><div><br clear="none"></div><div>Best,</div><div>Steve</div><div><br clear="none"></div></div><div class="yiv1744850727gmail_extra"><br clear="all"><div><div class="yiv1744850727gmail_signature"><div dir="ltr"><div><br clear="none"><br clear="none"></div>Stephen Politzer-Ahles<br clear="none">New York University, Abu Dhabi<br clear="none">Neuroscience of Language Lab<br clear="none"><a rel="nofollow" shape="rect" target="_blank" href="http://www.nyu.edu/projects/politzer-ahles/">http://www.nyu.edu/projects/politzer-ahles/</a><br clear="none"></div></div></div>
<br clear="none"><div class="yiv1744850727gmail_quote">On Mon, Mar 30, 2015 at 12:47 PM, Makoto Miyakoshi <span dir="ltr"><<a rel="nofollow" shape="rect" ymailto="mailto:mmiyakoshi@ucsd.edu" target="_blank" href="mailto:mmiyakoshi@ucsd.edu">mmiyakoshi@ucsd.edu</a>></span> wrote:<br clear="none"><blockquote class="yiv1744850727gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div dir="ltr">Dear Angel,<div><br clear="none"></div><div>Although I have never tried myself, ERPLAB seems to support such a function. Did you check it?</div><div><br clear="none"></div><div>Makoto</div></div><div class="yiv1744850727gmail_extra"><br clear="none"><div class="yiv1744850727gmail_quote">On Fri, Mar 27, 2015 at 5:17 AM, Angel Tabullo <span dir="ltr"><<a rel="nofollow" shape="rect" ymailto="mailto:angeltabullo@yahoo.com" target="_blank" href="mailto:angeltabullo@yahoo.com">angeltabullo@yahoo.com</a>></span> wrote:<br clear="none"><blockquote class="yiv1744850727gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div style="color:#000;background-color:#fff;font-family:times new roman, new york, times, serif;font-size:14px;"><div dir="ltr">Hi everyone!</div><div dir="ltr"><br clear="none"></div><div dir="ltr">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. </div><div dir="ltr"><br clear="none"></div><div dir="ltr">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). </div><div dir="ltr"><br clear="none"></div><div dir="ltr">Many thanks!</div><span><font color="#888888"></font></span><div dir="ltr"><br clear="none"></div><div dir="ltr">Angel Tabullo</div></div></div><br clear="none">_______________________________________________<br clear="none">
Eeglablist page: <a rel="nofollow" shape="rect" target="_blank" href="http://sccn.ucsd.edu/eeglab/eeglabmail.html">http://sccn.ucsd.edu/eeglab/eeglabmail.html</a><br clear="none">
To unsubscribe, send an empty email to <a rel="nofollow" shape="rect" ymailto="mailto:eeglablist-unsubscribe@sccn.ucsd.edu" target="_blank" href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu">eeglablist-unsubscribe@sccn.ucsd.edu</a><br clear="none">
For digest mode, send an email with the subject "set digest mime" to <a rel="nofollow" shape="rect" ymailto="mailto:eeglablist-request@sccn.ucsd.edu" target="_blank" href="mailto:eeglablist-request@sccn.ucsd.edu">eeglablist-request@sccn.ucsd.edu</a><span class="yiv1744850727HOEnZb"><font color="#888888"><br clear="none"></font></span></blockquote></div><span class="yiv1744850727HOEnZb"><font color="#888888"><br clear="none"><br clear="all"></font></span><div><br clear="none"></div>-- <br clear="none"><div><div dir="ltr">Makoto Miyakoshi<br clear="none">Swartz Center for Computational Neuroscience<br clear="none">Institute for Neural Computation, University of California San Diego<div class="yiv1744850727yqt4697262192" id="yiv1744850727yqtfd96080"><br clear="none"></div></div></div><div class="yiv1744850727yqt4697262192" id="yiv1744850727yqtfd51057">
</div></div><div class="yiv1744850727yqt4697262192" id="yiv1744850727yqtfd19788">
<br clear="none">_______________________________________________<br clear="none">
Eeglablist page: <a rel="nofollow" shape="rect" target="_blank" href="http://sccn.ucsd.edu/eeglab/eeglabmail.html">http://sccn.ucsd.edu/eeglab/eeglabmail.html</a><br clear="none">
To unsubscribe, send an empty email to <a rel="nofollow" shape="rect" ymailto="mailto:eeglablist-unsubscribe@sccn.ucsd.edu" target="_blank" href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu">eeglablist-unsubscribe@sccn.ucsd.edu</a><br clear="none">
For digest mode, send an email with the subject "set digest mime" to <a rel="nofollow" shape="rect" ymailto="mailto:eeglablist-request@sccn.ucsd.edu" target="_blank" href="mailto:eeglablist-request@sccn.ucsd.edu">eeglablist-request@sccn.ucsd.edu</a><br clear="none"></div></blockquote></div><div class="yiv1744850727yqt4697262192" id="yiv1744850727yqtfd98419"><br clear="none"></div></div></div></div><br><br></div>  </div> </div>  </div></div></body></html>