<div dir="ltr"><div>Dear FieldTrip community, <br></div><div><br></div><div>I am a beginner using fieldtrip, so I know I am missing something in this domain:<br></div><div>I am making a time-frequency analysis of EEG data with wavelets. However, I am getting the following warning:<br></div><div><i><br></i></div><div><i>Warning: output time-bins artrial 30, frequency 4 (7.00 Hz)</i></div><div><i>Warning: output time-bins are different from input time-bins</i></div><div><i><br></i></div><div>Using this parameters:</div><div><span style="font-family:monospace">    % Wavelet power<br>    cfg = []<br>    cfg.output = 'pow';<br>    cfg.channel = [1:64];<br>    cfg.keeptrials='no';<br>    cfg.method = 'wavelet';<br>    cfg.width = 7;<br>    cfg.toi = -2.0:0.01:2.0;<br>    cfg.foi = 4:1:20;</span></div><div><span style="font-family:monospace"><br></span></div><div><span style="font-family:monospace">    p_stim = ft_freqanalysis(cfg,stim);</span></div><div><br></div><div>I can mitigate the warning by changing the cfg.toi from <span style="font-family:monospace">[ -2.0:0.01:2.0] <span style="font-family:arial,sans-serif">to
  </span>[ -2.0:0.5:2.0] 

</span></div><div><br></div><div>However, the plot of the spectrum changes a lot, as I expected as the time window changes from intervals from 0.01 to 0.5:</div><div>With the warning:</div><div><div><div><img src="cid:ii_kgly8xbj1" alt="imagem.png" width="492" height="281"><br></div></div></div><div><br></div><div>Without the warning:</div><div><br></div><div>
<img src="cid:ii_kgly8dn90" alt="imagem.png" width="492" height="271">

</div><div><br></div><div><br></div><div>I know I am missing something regarding signal analysis... Why the differences in the changing the step of the interval leads to the warning?<br></div><div><br></div><div>Can you help me? I am not sure if the warning can influence the final results. <br></div><div><br></div><div>Best regards, <br></div><div>Helena Pereira<br></div><div><br></div><div><i></i></div></div>