<div dir="ltr">Hello,<div>It probably has an easy answer but here is my question:</div><div>When I apply the newtimef function with varwin [3 0], the wavelet used should contain 3 cycles in all frequencies applied. I am interested in extracting spectral power in 3Hz oscillations. So I use the below code:</div><div><br></div><div><div>[ersp_full, itc, powbase, times] = newtimef(data, ... </div><div>    length(data), ...</div><div>    [-5000 1000], ... % Yes, I have an epoch length of 6 seconds.</div><div>    256, ...</div><div>    varwin, [3 0], ...</div><div>    'freqs',3,...</div><div>    'baseline',[-5000 -200],... </div><div>    'timesout',-1);</div></div><div><br></div><div>The sliding window size is returned as 1113.28ms. However, 3 complete cycles of a 3Hz wave spans (3cycles * 1000ms / 3cycles = ) 1000ms.</div><div>I can't seem to figure out where then the extra 113.28ms comes from.</div><div>Can some one please point me in the right direction for the answer?</div><div><br></div><div>Thanks in advance,</div><div>C</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div>