<div dir="ltr">Hello all,<div><br></div><div>I having difficulties with ft_freqanalysis.</div><div><br></div><div><b>1) Problem:</b></div><div>I am trying to compute frequencies at 0.1 Hz steps between 4 and 120 Hz.</div><div>But I am getting the following Warning back:</div><div><br></div><div>"Warning: output frequencies are different from input frequencies, multiples of the same bin were requested but not given <br>trial 1, frequency 28 (129.57 Hz), 1 tapers<br>the call to "ft_freqanalysis" took 0 seconds"<br></div><div><br></div><div>And the frequency output is only of 28 different frequency values.</div><div><br></div><div><b>2) Procedure:</b></div><div>I am feeding in a structure to the 

ft_freqanalysis with the following characteristics:</div><div>svd_cd  struct with fields<br>    trialinfo: 'Int'<br>        trial: {[1×301 double]}<br>        label: {'MISC004xSVD'}<br>         time: {[1×301 double]}<br></div><div><br></div><div>This is my fieldtrip cal for frequency analysis:</div><div>%Compute FT<br>cfg = [];<br>cfg.output = 'pow';<br>cfg.taper = 'hanning';<br>cfg.method = 'mtmconvol';<br>cfg.foi          =  40:0.1:130;<br>cfg.t_ftimwin    =  5 ./cfg.foi ;<br>cfg.toi          = [-0.150 : 0.01: 0.150];<br>cfg.keeptrials = 'no';<br>tfr4 = ft_freqanalysis(cfg, svd_cd);<br></div><div><br></div><div>And the result:</div><div>tfr4 = <br><br>  struct with fields:<br><br>        label: {'MISC004xSVD'}<br>       dimord: 'chan_freq_time'<br>         freq: [1×28 double]<br>         time: [1×31 double]<br>    powspctrm: [1×28×31 double]<br>          cfg: [1×1 struct]<br></div><div><br></div><div><b>3) Question:</b></div><div>Can you identify why I can't get back the same number of output frequencies as I am requesting in the cfg.foi request? Is there a way to get around this?</div><div><br></div><div>Hope everyone is doing well : )</div><div>Many thanks in advance for your help!   <br></div><div><br></div><div>Ana Pesquita</div><div>Postdoctoral Researcher</div><div>Center for Human Brain Health</div><div>University Of Birmingham, UK</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div>