<div dir="ltr">Dear Cigir,<div><br></div><div>For your info, this is the timely updated wiki.</div><div><a href="https://sccn.ucsd.edu/wiki/Makoto%27s_preprocessing_pipeline#A_tip_to_compute_time-frequency_transform_.28i.e._ERSP_.26_ITC.29_.2801.2F11.2F2017_updated.29">https://sccn.ucsd.edu/wiki/Makoto%27s_preprocessing_pipeline#A_tip_to_compute_time-frequency_transform_.28i.e._ERSP_.26_ITC.29_.2801.2F11.2F2017_updated.29</a><br></div><div><br></div><div>Where does that extra 113.28 ms come from? newtimef() calls dftfilt3() function to define Morlet waveform as a mother wavelet, which has distribution in both time and frequency. So 3Hz you specify is not exactly 3Hz after letting it have frequncy distribution, which is why it becomes a little bit longer... that's my 'guess'. I mean, it would be tautologically obvious to watch how dftfilt3() creates the wavelet by using debug mode. There is no mistery, the textbook equation is written in that code (by Ray Ramirez, I met him in SCCN.)</div><div><br></div><div>From Lufthansa455 to Frankfurt,</div><div><br></div><div>Makoto</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 5, 2017 at 1:44 AM, Cigir Kalfaoglu <span dir="ltr"><<a href="mailto:cigirkalfaoglu@gmail.com" target="_blank">cigirkalfaoglu@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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>
<br>______________________________<wbr>_________________<br>
Eeglablist page: <a href="http://sccn.ucsd.edu/eeglab/eeglabmail.html" rel="noreferrer" target="_blank">http://sccn.ucsd.edu/eeglab/<wbr>eeglabmail.html</a><br>
To unsubscribe, send an empty email to <a href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu">eeglablist-unsubscribe@sccn.<wbr>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.<wbr>edu</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div 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>