<p dir="ltr">Dear Nenad,</p>
<p dir="ltr">Unfortunately the limit to the frequency resolution is fundamental and not practical. It is impossible to get a better frequency resolution than 20 Hz with only 50ms of data. (It might help to think of this as analogous to Heisenberg's uncertainty principle in physics.)</p>
<p dir="ltr">Why do you need a better frequency resolution? Perhaps there are alternatives to what you are trying.</p>
<p dir="ltr">Best,<br>
Eelke</p>
<div class="gmail_quote">On Nov 8, 2013 7:44 AM, "Nenad Polomac" <<a href="mailto:polomacnenad@gmail.com">polomacnenad@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<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>
<br>_______________________________________________<br>
fieldtrip mailing list<br>
<a href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a><br>
<a href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip" target="_blank">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br></blockquote></div>