<div dir="ltr"><font face="arial, helvetica, sans-serif" color="#000000">Dears,</font><div><font face="arial, helvetica, sans-serif" color="#000000"><br></font></div><div><font face="arial, helvetica, sans-serif" color="#000000">I am Michele Scaltritti, and this is my first post on this mailing list. I work on ERPs in the context of psycholinguistics, and I just recently started working with Fieldtrip to perform time-frequency analyses.</font></div><div><font face="arial, helvetica, sans-serif" color="#000000"><br></font></div><div><font face="arial, helvetica, sans-serif" color="#000000">I am encountering a problem with respect to boundary effects, as these affects time windows that I didn't expect.</font></div><div><font face="arial, helvetica, sans-serif" color="#000000"><br></font></div><div><font face="arial, helvetica, sans-serif" color="#000000">More precisely, I' running my analysis on epochs going from -1.1s before stimulus onset (0 s), to 4 s afterwards (for a total length of 5.1s). In order to do that, I am using Morlet wavelets of 7 cycles, with 50 milliseconds time-steps. I am estimating frequencies ranging from 10 to 35 Hz.</font></div><div><font face="arial, helvetica, sans-serif" color="#000000"><br></font></div><div><font face="arial, helvetica, sans-serif" color="#000000">At 10Hz frequency, the length of my wavelet should be 7/10/pi, so around 222 ms. As such, I would expect to be able to estimate frequency power at -800 ms in my epoch (which corresponds to the starting time of what I would like to be my baseline): in fact, I would expect to be able to estimate 10Hz frequency power as soon as the third time-step (150 ms), corresponding to -950 in my epochs. However, I don't get any value for 10Hz frequency at -800 ms.</font></div><div><font face="arial, helvetica, sans-serif" color="#000000"><br></font></div><div><font face="arial, helvetica, sans-serif" color="#000000">Clearly, my reasoning is wrong, but I can't figure out what I am missing. In the following lines, I'll post the code of the configuration I used to run the frequency decomposition</font></div><div><font face="arial, helvetica, sans-serif" color="#000000"><br></font></div><div><p style="margin:0px;line-height:normal"><font face="arial, helvetica, sans-serif" color="#000000">cfg = []</font></p>
<p style="margin:0px;line-height:normal"><font face="arial, helvetica, sans-serif" color="#000000"> cfg.channel = 'all';</font></p>
<p style="margin:0px;line-height:normal"><font face="arial, helvetica, sans-serif" color="#000000"> cfg.method = 'wavelet';</font></p>
<p style="margin:0px;line-height:normal"><font face="arial, helvetica, sans-serif" color="#000000"> cfg.width = 7;</font></p>
<p style="margin:0px;line-height:normal"><font face="arial, helvetica, sans-serif" color="#000000"> cfg.output = 'pow';</font></p>
<p style="margin:0px;line-height:normal"><font face="arial, helvetica, sans-serif" color="#000000"> cfg.foi = 10:1:35; </font></p>
<p style="margin:0px;line-height:normal"><font face="arial, helvetica, sans-serif" color="#000000"> cfg.toi = -1.1:0.05:4</font></p>
<p style="margin:0px;line-height:normal;min-height:14px"><font face="arial, helvetica, sans-serif" color="#000000"> </font></p>
<p style="margin:0px;line-height:normal"><font face="arial, helvetica, sans-serif" color="#000000">TF_data = ft_freqanalysis(cfg,data)</font></p><p style="margin:0px;line-height:normal;min-height:14px">
</p><p style="margin:0px;line-height:normal;min-height:14px"><font face="arial, helvetica, sans-serif" color="#000000">Thank you very much for the attention, and please excuse eventual gross mistakes in my arguments.</font></p><p style="margin:0px;line-height:normal;min-height:14px"><font face="arial, helvetica, sans-serif" color="#000000"><br></font></p><p style="margin:0px;line-height:normal;min-height:14px"><font face="arial, helvetica, sans-serif" color="#000000">michele</font></p></div><div><br></div></div>