Dear Makoto,<br><br>thanks a lot for your response.<br>I think I figured out, that I was making a really stupid mistake. I thought that the output parameters were optional and that their order did not matter (I used [ersp,times,freqs]) . So the output that was given for 'freqs' was actually the 'powbase' output (and likewise the 'times' output was the itc...).<br>
<br>So I changed my code to:<br><br>[ersp,itc,powbase,times,freqs] = newtimef(EEG.data (83,:,:), 350, [-400 996], 250, [1 0.5],'baseline',[NaN],'freqs', [4 50], 'freqscale', 'log', 'padratio', 4);<br>
<br>and I am now getting more sensible results (times from -260 to 860 and frequencies from 4 to 50).<br>I am really sorry for this!<br><br>I tried using 'nfreqs' 47 instead of 'padratio' 4 as you suggested. The results are identical. Why is it better to define the number of frequencies than to use the padratio?<br>
<br>I have one more question about the powbase. I do not want to baseline my wavelets (and I set 'baseline' [NaN]), but I am getting a powbase output. Does that mean that the baseline power is computed but not used for the wavelets?<br>
<br>Thanks a lot, Katharina<br><br><br><div class="gmail_quote">On 3 August 2012 08:06, Makoto Miyakoshi <span dir="ltr"><<a href="mailto:mmiyakoshi@ucsd.edu" target="_blank">mmiyakoshi@ucsd.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear Katharina,<br>
<br>
Sorry for slow response.<br>
<div class="im"><br>
> The values range from 1.6608914e+04 to 3.0225791e+05.<br>
<br>
</div>This means your frequency range is between 1.6 MHz to 30.2 MHz, which<br>
is like an old generation CPU clock speed. Something is seriously<br>
wrong. However, I don't know what causes this from your code.<br>
<br>
By the way, if you want something close to 4,5,6,... 50, you should<br>
use 'nfreq', 47 instead of 'padratio', 4. Could you try it to see what<br>
happens?<br>
<br>
Makoto<br>
<br>
2012/7/22 Katharina Limbach <<a href="mailto:klim366@aucklanduni.ac.nz">klim366@aucklanduni.ac.nz</a>>:<br>
<div><div class="h5">> Dear all,<br>
><br>
> I have a question regarding the output of the newtimef function.<br>
> I am using the following command (input data: 1 participant, 1 condition,<br>
> electrode # 67. My sampling rate is 250 Hz and the epochs go from -400 to<br>
> 996 ms (350 frames)):<br>
><br>
> [ersp,times,freqs] = newtimef(EEG.data (67,:,:), 350, [-400 996], 250, [1<br>
> 0.5],'baseline',[NaN], 'freqs', [4 50], 'freqscale', 'log', 'padratio', 4,<br>
> 'plotphase', 'off', 'plotitc', 'off');<br>
><br>
> The resulting plot is showing frequencies from 4 to 50 Hz (which is what I<br>
> was looking for) but I do not understand the output I get for 'freqs':<br>
> The values range from 1.6608914e+04 to 3.0225791e+05.<br>
> Shouldn't they simply be in Hz and go from 4 to 50 Hz? Do I have to convert<br>
> them to get the correct values or is there something else that I am doing<br>
> wrong?<br>
><br>
> Also my 'times' output is not a vector of output times in ms, but a  47 x<br>
> 200 martix with complex numbers.<br>
><br>
><br>
> Thanks a lot for your help,<br>
> Katharina<br>
><br>
> --<br>
> Katharina Limbach<br>
> PhD Candidate<br>
> Department of Psychology<br>
> University of Auckland<br>
> Private Bag 92019<br>
> Auckland<br>
> New Zealand<br>
> tel: + 64 9 3737 599 ext 85969<br>
><br>
><br>
</div></div>> _______________________________________________<br>
> Eeglablist page: <a href="http://sccn.ucsd.edu/eeglab/eeglabmail.html" target="_blank">http://sccn.ucsd.edu/eeglab/eeglabmail.html</a><br>
> To unsubscribe, send an empty email to <a href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu">eeglablist-unsubscribe@sccn.ucsd.edu</a><br>
> For digest mode, send an email with the subject "set digest mime" to<br>
> <a href="mailto:eeglablist-request@sccn.ucsd.edu">eeglablist-request@sccn.ucsd.edu</a><br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
--<br>
Makoto Miyakoshi<br>
JSPS Postdoctral Fellow for Research Abroad<br>
Swartz Center for Computational Neuroscience<br>
Institute for Neural Computation, University of California San Diego<br>
</font></span></blockquote></div>