<div dir="ltr"><div><div><div><div>Dear Fieldtrip users,<br><br></div>I have one problem and I hope that somebody has idea. For my source and connectivity analysis I need cross spectrum matrix at 40Hz and for time window of 50 ms(the effect is evoked gamma and it last less then 50 ms). The problem is that for this very narrow window the best I can get is the frequency resolution of 20Hz and that is far to low. I am trying now different padding options but it seems it doesn't help. If I band pass filter(35-45Hz) data before fft then result is as expected, but without filtering I pickup wide range of frequencies(probably from 20-60Hz) even if I specify cfg.foilim=[40 40]. Furthermore, all this stuff is included in my cross spectrum and brought into the further calculations.<br>
my code:<br>        cfg=[];<br>        cfg.toilim    = [0.03 0.08];<br>        data_redef= ft_redefinetrial(cfg, data);<br>        <br>        cfg = [];<br>        cfg.trials = 'all';<br>        cfg.keeptrials = 'no';<br>
        cfg.channel    = 'MEG';<br>        cfg.method    = 'mtmfft';<br>        cfg.output    = 'powandcsd';<br>        cfg.tapsmofrq = 1;<br>        cfg.foilim    = [40 40];<br>        cfg.taper      =  'hanning';<br>
        cfg.pad        =2;<br>        cfg.padtype='zero';<br>        gamma = ft_freqanalysis(cfg,  data_redef);<br><br></div>Thank you in advance!<br></div>Cheers,<br><br></div>Nenad<br></div>