Dear Makoto,<div><br></div><div>this works perfectly! I did everything you said. </div><div><br></div><div>Does this mean that the calculation part was performed correctly all the time and that just the plot was not precise? To me it seems to be like that, since I am getting the same results, but with perfect plots, which I needed.</div>
<div><br></div><div>Thank you once again.</div><div><br></div><div>Ida<br><br><div class="gmail_quote">On Mon, Jun 11, 2012 at 6:50 PM, 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 Ida,<br>
<br>
Ok, you should use the option 'freqfac'.<br>
Follow the steps shown below.<br>
1. type 'edit' to open empty editor<br>
2. run the pop_spectopo from GUI<br>
3. type 'eegh' to get the log of the last command<br>
4. copy the pop_spectopo line of the log and paste it to empty editor.<br>
5. add this at the beginning:<br>
       [spectra,freqs,speccomp,contrib,specstd] = pop_spectopo(...<br>
6. add 'freqfac', 64 at the end of the line<br>
7. select all lines in the editor and press F9<br>
8. open 'freqs' in the workspace. You should see a frequency<br>
resolution of (0 to your nyquist)/16385 there.<br>
<br>
Let's say your sampling rate is 250Hz, and you are interested in<br>
10.1Hz spectrum and its map. Then, 10.1 is between 10.0937 and<br>
10.1013, and I think the latter is use for plotting.<br>
<br>
Makoto<br>
<br>
2012/6/9 ida miokovic <<a href="mailto:ida.miokovic@gmail.com">ida.miokovic@gmail.com</a>>:<br>
<div><div class="h5">> I just came to conclusion that these frequencies are rounded to the nearest<br>
> value (0Hz, 0.5Hz, 1Hz) when plotting, am I right?<br>
><br>
> Are they rounded in calculations also or a specified value is used? Is there<br>
> a way for me to work with the actual frequency I want? How could I call this<br>
> function as a code? I tried following:<br>
><br>
> pop_spectopo('EEG',[-2000 1000],100,0.33)<br>
><br>
> for current EEG data set, specified range, 100% of the data and 0.33 Hz as a<br>
> frequency of interest, but something is not OK and I get following error:<br>
><br>
> ??? Attempt to reference field of non-structure array.<br>
><br>
> Error in ==> pop_spectopo at 120<br>
> if ~isempty(EEG.chanlocs)<br>
><br>
> Thank you very much for any help.<br>
><br>
> Ida<br>
><br>
><br>
> On Sat, Jun 9, 2012 at 3:15 PM, ida miokovic <<a href="mailto:ida.miokovic@gmail.com">ida.miokovic@gmail.com</a>> wrote:<br>
>><br>
>> Hello,<br>
>><br>
>> I have question regarding procedure: Plot --> Components spectra and maps.<br>
>> I am interested in channel with the maximum power at the specified frequency<br>
>> so I put brackets [] in the electrode number to analyze and I use 100% of<br>
>> the data.<br>
>><br>
>> Frequency of my interest is for example 0.27 Hz, but when the calculation<br>
>> is done, on the plot I get the scalps (components activities) connected to<br>
>> the frequency around 0.45 Hz (plotting frequency range was 0 1). Same<br>
>> happens for the frequency 0.25 Hz (on the plot I get 0.45 Hz). On the other<br>
>> side, plot of the 1Hz is OK. In the workspace it is using value I put in the<br>
>> GUI, but on  the plot in case of 0.25, 0.27, 0.3, the frequencies are not<br>
>> those from the GUI.<br>
>><br>
>> To me, it is important to get the channel of my interest and the<br>
>> components where there is the most of specified frequencies. If it is just<br>
>> plotting issue, I don't mind, but any hints why does it happen would be<br>
>> great. Maybe it is working better with integer values of frequencies...<br>
>><br>
>> Thanks<br>
>><br>
>> Ida<br>
><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><br></div>