<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: alessandro.marassi@libero.it<br>
Data: 02/08/2015 23.46<br>
A: <eeglablist@sccn.ucsd.edu><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>http://sccn.ucsd.edu/pipermail/eeglablist/2011/004445.html<br>using an additional parameter " 'mapchans', 1:10 ", but without success.<br><br>thanks,<br>Alex <br><br>
</blockquote><br>