thanks, I thought there might be an option I could hand over in the cfg. <br><br>that will work<br><br><div class="gmail_quote">2009/7/2 Thomas Hartmann <span dir="ltr"><<a href="mailto:thomas.hartmann@uni-konstanz.de">thomas.hartmann@uni-konstanz.de</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">hi martin,<br>
the spectral resolution of a fft is determined by the length of the data used to calculate it. e.g. a length of 1 second would give a frequency-resolution of 1Hz, 2 seconds of data would result in a resolution of 0.5Hz and so on....<br>

<br>
what you actually missed is that you dont want to calculate one fft on your 5-minutes trial but rather several ffts on (overlapping) windows of your 5 minutes. to do this, refer to the mail by nathan weisz "re: preprocessing without trigger...". he shows some code there to cut long trials into several short ones. calculate the freqanalysis on these and you will get reasonable results.<br>

<br>
greez,<br>
thomas<br>
<br>
Martin Bleichner schrieb:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="h5">
Hi there,<br>
<br>
this might be a stupid question. I probably miss something obvious.<br>
<br>
I want to compute the power spectrum over a single trial (around 5 minutes).<br>
<br>
using this piece of code<br>
cfg        = [];<br>
cfg.method = 'mtmfft';<br>
cfg.output = 'pow';<br>
cfg.foilim = [1 100];<br>
cfg.taper  = 'hanning';<br>
freq       = freqanalysis(cfg, data);<br>
<br>
as a result I get<br>
 freq: [1x62534 double]<br>
powspctrm: [96x62534 double]<br>
<br>
that is a frequency resolution of 0.0032Hz!? What determines the frequency resolution here? What can I do to make it less fine grained?<br>
<br>
Thanks<br>
Martin<br>
<br>
<br></div></div><div class="im">
----------------------------------<br>
<br>
The aim of this list is to facilitate the discussion between users of the FieldTrip toolbox, to share experiences and to discuss new ideas for MEG and EEG analysis.<br>
<br>
</div><div class="im"><a href="http://listserv.surfnet.nl/archives/fieldtrip.html" target="_blank">http://listserv.surfnet.nl/archives/fieldtrip.html</a><br>
<br>
</div><a href="http://www.ru.nl/fcdonders/fieldtrip/" target="_blank">http://www.ru.nl/fcdonders/fieldtrip/</a><br>
<br>
</blockquote>
<br>
<br>
-- <br>
Dipl. Psych. Thomas Hartmann<br>
<br>
OBOB-Lab<br>
University of Konstanz<br>
Department of Psychology<br>
P.O. Box D25<br>
78457 Konstanz<br>
Germany<br>
<br>
Tel.: +49 (0)7531 88 4612<br>
Fax: +49 (0)7531-88 4601<br>
Email: <a href="mailto:thomas.hartmann@uni-konstanz.de" target="_blank">thomas.hartmann@uni-konstanz.de</a><br>
Homepage: <a href="http://www.uni-konstanz.de/obob" target="_blank">http://www.uni-konstanz.de/obob</a><br>
<br>
"I am a brain, Watson. The rest of me is a mere appendix. " (Arthur Conan Doyle)<div><div></div><div class="h5"><br>
<br>
----------------------------------<br>
The aim of this list is to facilitate the discussion between users of the FieldTrip  toolbox, to share experiences and to discuss new ideas for MEG and EEG analysis. See also <a href="http://listserv.surfnet.nl/archives/fieldtrip.html" target="_blank">http://listserv.surfnet.nl/archives/fieldtrip.html</a> and <a href="http://www.ru.nl/neuroimaging/fieldtrip" target="_blank">http://www.ru.nl/neuroimaging/fieldtrip</a>.<br>

</div></div></blockquote></div><br>
<p>----------------------------------</p>
<p>The aim of this list is to facilitate the discussion between users of the FieldTrip  toolbox, to share experiences and to discuss new ideas for MEG and EEG analysis.</p>
<p>  http://listserv.surfnet.nl/archives/fieldtrip.html</p>
<p>  http://www.ru.nl/fcdonders/fieldtrip/</p>