<div dir="ltr">Dear Alessandro,<div><br></div><div>> but it does not seem possible to select time ranges.<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">That should be done by using pop_select(). From main EEGLAB GUI, 'Edit' -> 'Select data'...</div><div class="gmail_extra"><br></div><div class="gmail_extra">Makoto</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 4, 2015 at 1:00 AM, <a href="mailto:alessandro.marassi@libero.it">alessandro.marassi@libero.it</a> <span dir="ltr"><<a href="mailto:alessandro.marassi@libero.it" target="_blank">alessandro.marassi@libero.it</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div></div><font size="2">Dear Makoto,<br>maybe I missed something.<br>I need to plot single channel spectra computed in specified epochs' time ranges (baseline and task), possibly choosing winsize and nfft parameters for the spectra computation. I have then to subtract baseline spectra from task spectra.<br>I would like to perform this operation both in single epochs and in a set of data epochs identified by an event (StimulusBegin) and previously extracted via the EEGlab GUI menu.<br><br>As far as I know, spectopo <font face="Helvetica">plots the mean log spectrum of a set of data epochs</font>, but it does not seem possible to select time ranges. It lets you choose single channels, winsize and nfft.<br><br><font face="Helvetica">Pop_spectopo plots spectra of specified data channels or components. It calls spectopo().<br>It lets you choose time ranges, but it does not seem possible to select single channels nor to </font>choose winsize and nfft.<br><br>If pop_spectopo is applied to the extracted epochs identified by an event </font><font size="2"><font size="2">(StimulusBegin), is it possible (and how) to compute spectra over a set of data epochs?<br></font>How can I practically proceed to get the result I need?<br>Should I modify </font><font size="2"><font size="2"><font face="Helvetica">pop_spectopo code?<br></font></font>Could you please give me an example script?<br><br>Thanks,<br>Alex<br><br></font> <pre>Dear Alessandro,

><i> Is it possible to plot with pop_spectopo only specified channels as they
</i>may be chosen in:
[spectra,freqs] = spectopo(EEG.data(8,:), 0, EEG.srate, 'winsize', 256,
'nfft', 512); %
possibly setting as well winsize and nfft in the same way as with the above
spectopo call?

Sure, why not?
Just be careful not to be confused with the difference between pop_spectopo
and spectopo.

Makoto</pre>

<blockquote>
----Messaggio originale----<br>
Da: <a href="mailto:alessandro.marassi@libero.it" target="_blank">alessandro.marassi@libero.it</a><br>
Data: 02/08/2015 23.46<br>
A: <<a href="mailto:eeglablist@sccn.ucsd.edu" target="_blank">eeglablist@sccn.ucsd.edu</a>><br>
Ogg: pop_spectopo specified channels, winsize and nfft<br>
<br>
I have to plot single channel spectra computed in specified epochs' time ranges such as:<br>pop_spectopo(EEG, 1, [-1000      0], 'EEG' , 'percent', 15, 'freqrange', [2 25], 'electrodes','off'<br><br>Is it possible to plot with pop_spectopo only specified channels as they may be chosen in:<br>[spectra,freqs] = spectopo(EEG.data(8,:), 0, EEG.srate, 'winsize', 256, 'nfft', 512); %<br>possibly setting as well winsize and nfft in the same way as with the above spectopo call?<br><br>As regards channels I tried to follow what has been suggested in:<br><a href="http://sccn.ucsd.edu/pipermail/eeglablist/2011/004445.html" target="_blank">http://sccn.ucsd.edu/pipermail/eeglablist/2011/004445.html</a><br>using an additional parameter " 'mapchans', 1:10 ", but without success.<br><br>thanks,<br>Alex <br><br>
</blockquote><br>
<br>_______________________________________________<br>
Eeglablist page: <a href="http://sccn.ucsd.edu/eeglab/eeglabmail.html" rel="noreferrer" 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 <a href="mailto:eeglablist-request@sccn.ucsd.edu">eeglablist-request@sccn.ucsd.edu</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Makoto Miyakoshi<br>Swartz Center for Computational Neuroscience<br>Institute for Neural Computation, University of California San Diego<br></div></div>
</div></div>