<div dir="ltr">Dear Nick,<div><br></div><div>Recently there was a similar query. Let me copy the reply for you. If it's not what you want please let us know.</div><div><br></div><div>Makoto</div><div><br></div><div>%%%%%%%%%%%%%%%%%%%</div>


<div><div style="font-family:arial,sans-serif;font-size:14px"><div>% for your epoched data, channel 2</div><div>[spectra,freqs] = spectopo(<span>EEG</span>.data(2,:,:), 0, <span>EEG</span>.srate);</div><div>
<br></div><div>% delta=1-4, theta=4-8, alpha=8-13, beta=13-30, gamma=30-80</div><div>deltaIdx = find(freqs>1 & freqs<4);</div><div>thetaIdx = find(freqs>4 & freqs<8);</div><div>alphaIdx = find(freqs>8 & freqs<13);</div>


<div>betaIdx  = find(freqs>13 & freqs<30);</div><div>gammaIdx = find(freqs>30 & freqs<80);</div><div><br></div><div>% compute absolute power</div><div>deltaPower = 10^(mean(spectra(deltaIdx))/10);</div>


<div>thetaPower = 10^(mean(spectra(thetaIdx))/10);</div><div>alphaPower = 10^(mean(spectra(alphaIdx))/10);</div><div>betaPower  = 10^(mean(spectra(betaIdx))/10);</div><div>gammaPower = 10^(mean(spectra(gammaIdx))/10);</div>


</div><div style="font-family:arial,sans-serif;font-size:14px">%%%%%%%%%%%%%%%%%</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-03-11 16:35 GMT-07:00 Nick Wan <span dir="ltr"><<a href="mailto:nickwan@aggiemail.usu.edu" target="_blank">nickwan@aggiemail.usu.edu</a>></span>:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">Hi all,</div>

<div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">
<br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">

I have a dataset with a frequency range of 2 - 32Hz and would like to extract power data from 8 - 12Hz over the time of my dataset. I know spectopo can do this, but I'd like to know where the data used to render the plot is located -- is that the data I would be looking for, or is there another way to create a data output of power over time for a specific frequency range?</div>




<div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">I'm hoping there's a way I can do it without having to create separate datasets for each frequency range. Thanks. </div>


<span><font color="#888888">

<div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div><br></div>-- <br>




<div dir="ltr">Nick Wan<div>Graduate Student</div><div><br></div><div>Multisensory Cognition Lab</div><div>Department of Psychology</div><div>Utah State University</div><div><br></div><div>Office: HSRC 004</div><div>Phone: <a href="tel:435-554-8788" value="+14355548788" target="_blank">435-554-8788</a></div>




<div>Blog: <a href="http://truebra.in" target="_blank">truebra.in</a></div></div>
</font></span></div>
<br>_______________________________________________<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" target="_blank">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" target="_blank">eeglablist-request@sccn.ucsd.edu</a><br></blockquote></div><br><br clear="all">

<div><br></div>
-- <br><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>