<div dir="ltr">Hello Roni,<div><br></div><div>I have not used t his function, and I'm not sure what error message you are getting. But just a guess: are you sure your epoch includes the 1000 ms timepoint? If I recall correctly, the end-of-epoch bounds (when you use pop_epoch) are exclusive---i.e., if you specify epoch limits as [-.2 1], then the last sample of your epoch will be the one right before 1000ms, which would be 999 ms if your sampling rate was 1000 Hz. You can check what the end of your epoch is using EEG.times(end) or EEG.xmax. If your last sample is 999 ms, that would explain why you can't get a mean for 800-1000 ms.</div><div><br></div><div>Best,</div><div>Steve</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div><br><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></div>
<br><div class="gmail_quote">On Mon, Jan 26, 2015 at 4:48 PM, Roni Shafir <span dir="ltr"><<a href="mailto:ronishafir1@gmail.com" target="_blank">ronishafir1@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 .8ex;border-left:1px #ccc solid;border-right:1px #ccc solid;padding-left:1ex;padding-right:1ex"><div dir="rtl"><div dir="ltr">Hi all,</div><div dir="ltr">I'm using the "meanepoch" function in my MATLAB code to get mean amplitudes of every single trial between 800-1000 ms. The epoch time is defined as -200 ms (baseline) to 1000 ms.</div><div dir="ltr">I'm receiving an error massage. Importantly, when I change the input latency of the function to 800-999, everything works fine.</div><div dir="ltr">How can I get mean amplitudes between 800 and the end of the epoch (1000)?</div><div dir="ltr">Would appreciate your help!</div><span class="HOEnZb"><font color="#888888"><div dir="ltr">Roni</div></font></span></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>