<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Hi José,
<div class=""><br class="">
</div>
<div class="">The frequencies that are returned are constrained by the intrinsic frequency resolution of your epochs. Since your epochs are 3.3 seconds long, FT will round to the nearest attainable frequencies, quantized at 1./3.3. You can use cfg.pad for spectral
 interpolation. This parameter is the length (in s) until which the data are padded with 0’s, prior to the FFT.</div>
<div class="">In this case, I suggest to use cfg.pad = 4.</div>
<div class="">Best,</div>
<div class="">Jan-Mathijs</div>
<div class=""><br class="">
<div class="">
<div>
<blockquote type="cite" class="">
<div class="">On 04 May 2016, at 19:30, Jose <<a href="mailto:joseluisblues@gmail.com" class="">joseluisblues@gmail.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="ltr" class="">dear list,<br class="">
<br class="">
I'm analysing CTF MEG data (sampling rate 1250 Hz).<br class="">
I'm epoching my data from -0.5 sec to 2.8 sec relative my marker of interest.<br class="">
<br class="">
% define the trial matrix<br class="">
trlFile = zeros(length(markers3), 3);<br class="">
for i_trial = 1:length(markers3)<br class="">
    trlFile(i_trial,1) = markers3(i_trial,2) -625; % 0.5*1250 % SR = 1250,<br class="">
    trlFile(i_trial,2) = markers3(i_trial,2) +3500; % 2.8*1250 % SR = 1250,<br class="">
    trlFile(i_trial,3) = -625;<br class="">
    trlFile(i_trial,4) = markers3(i_trial,1);<br class="">
end<br class="">
<br class="">
Once I pre-process the data, I run TF analyses with the wavelet method<br class="">
<br class="">
cfg = [ ];<br class="">
cfg.trials = find(data2.trialinfo(:,1) == i_condition);<br class="">
cfg.channel = 'MEG';<br class="">
cfg.method = 'wavelet';<br class="">
cfg.width = 5;<br class="">
cfg.output = 'pow';<br class="">
cfg.foi = 1:1:30;<br class="">
cfg.toi = -0.5:0.05:2.8;<br class="">
TFdata = ft_freqanalysis(cfg, data1);<br class="">
<br class="">
In the .freq field I realize that my frequency are not exact integers<br class="">
<br class="">
0.907801418439716    2.11820330969267    3.02600472813239    3.93380614657210    5.14420803782506    6.05200945626478    6.95981087470449    7.86761229314421    9.07801418439716    9.98581560283688 ...<br class="">
<br class="">
I checked:<br class="">
<a href="http://www.fieldtriptoolbox.org/faq/why_am_i_not_getting_exact_integer_frequencies" class="">http://www.fieldtriptoolbox.org/faq/why_am_i_not_getting_exact_integer_frequencies</a><br class="">
<br class="">
So, I decide to reduce one sample in my trial definition (so trlFile(i_trial,2) = markers3(i_trial,2) +3500-1; % 2.8*1250 % SR = 1250,)<br class="">
<br class="">
But, still I'm not having integers,<br class="">
<br class="">
0.909090909090909    2.12121212121212    3.03030303030303    3.93939393939394    5.15151515151515    6.06060606060606    6.96969696969697    7.87878787878788    9.09090909090909    10 ...<br class="">
<br class="">
I suspect I can't obtain integer frequencies in my TFR due to my frequency sampling,<br class="">
Is there any recommendation regarding the frequencies used to compute the TFRs?<br class="">
Would that pose some issues for subsequent processing steps?<br class="">
<br class="">
thanks<br class="">
Jose<br class="">
<div dir="ltr" class="">
<div class="">
<div dir="ltr" class="">
<div class="">
<div dir="ltr" class=""><a href="https://sites.google.com/site/joseluisulloafulgeri/" target="_blank" class=""></a><br class="">
<span style="border-collapse: separate; color: rgb(102, 102, 102); font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; font-size: inherit;" class=""><span style="font-family:arial;font-size:small" class=""><span style="font-family:tahoma,sans-serif" class=""><span style="border-collapse: separate; color: rgb(102, 102, 102); font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; font-size: 12px;" class=""><span style="font-family:arial;font-size:small" class=""></span></span></span></span></span></div>
</div>
</div>
</div>
</div>
</div>
_______________________________________________<br class="">
fieldtrip mailing list<br class="">
<a href="mailto:fieldtrip@donders.ru.nl" class="">fieldtrip@donders.ru.nl</a><br class="">
http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</div>
</blockquote>
</div>
<br class="">
</div>
</div>
</body>
</html>