<div dir="ltr">Dear Konstantina,<div><br></div><div>I understand! This is the most frequently repeated question.</div><div><br></div><div><span style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">> For me it seems logical to use the range that i computed ERP...</span><br style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><br></div><div>Ok let me tell you the logic here.</div><div>To compute ERSP, a sliding window is used. If the sliding window length is 301 points, you'll lose the first 150 and the last 150 datapoints from your epoch, because one 301-point-long window does not generate 301 data points as results, but it generates only 1 data point to return. See slide 21 of this pdf file.</div><div><a href="https://sccn.ucsd.edu/mediawiki/images/a/a6/C2_A3_Time-frequencyDecAndAdvancedICAPracticum_updateJan2017.pdf">https://sccn.ucsd.edu/mediawiki/images/a/a6/C2_A3_Time-frequencyDecAndAdvancedICAPracticum_updateJan2017.pdf</a><br></div><div><br></div><div>So, if you want ERPS to have the same length as your ERP, you have to add half window length to both of your epoch ends to extend your epoch (which will make your ERP longer as a result; so you have to 'shroten' ERP to the length of ERSP to match their lengths.)</div><div><br></div><div>Makoto</div><br><div class="gmail_quote"><div dir="ltr">On Mon, Jul 16, 2018 at 9:55 PM Konstantina Tsekoura <<a href="mailto:tsekou@ceid.upatras.gr">tsekou@ceid.upatras.gr</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
i am confused about time limits in newtimef...<br>
I found that epochlim must be the whole epoch:<br>
<br>
epochlim = [mintime maxtime] (ms). Note that these are the time <br>
limits<br>
% of the data epochs themselves, NOT A SUB-WINDOW TO <br>
EXTRACT<br>
% FROM THE EPOCHS as is the case for pop_newtimef(). <br>
{[-1000 2000]}<br>
<br>
<br>
<br>
In my study i am computing ERP with time limits [-400 1990] while my <br>
epoch is [-1000 2000]. And now i would like to compute with newtimef <br>
ERSP from ERP... do i have to use [-1000 2000] to epochlim or [-400 <br>
1990]?<br>
<br>
For me it seems logical to use the range that i computed ERP...<br>
<br>
I would appreciated if anyone could help me...<br>
<br>
Thank you,<br>
Konstantina<br>
_______________________________________________<br>
Eeglablist page: <a href="http://sccn.ucsd.edu/eeglab/eeglabmail.html" rel="noreferrer" 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" target="_blank">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" target="_blank">eeglablist-request@sccn.ucsd.edu</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Makoto Miyakoshi<br>Swartz Center for Computational Neuroscience<br>Institute for Neural Computation, University of California San Diego<br></div></div></div>