<div dir="ltr">Dear Nishanth,<div><br></div><div>This is the basic idea.</div><div><br></div><div><div style="font-family:arial,sans-serif;font-size:12.5714282989502px">%%%%%%%%%%%%%%%%%%%</div><div style="font-family:arial,sans-serif;font-size:12.5714282989502px"><div style="font-size:14px"><div>% for your epoched data, channel 2</div><div>[spectra,freqs] = spectopo(EEG.data(2,:,:), 0, EEG.srate);</div><div><br></div><div>% <span class="">delta</span>=1-4, <span class="">theta</span>=4-8, <span class="">alpha</span>=8-13, <span class="">beta</span>=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-size:14px">%%%%%%%%%%%%%%%%%</div><div style="font-size:14px"><br></div><div style="font-size:14px"><div style="font-family:arial;font-size:small">If you don't want to code, maybe you want to try the following toolbox.</div><div style="font-family:arial;font-size:small"><a href="http://www.poil.dk/s/#.VDRGNZTWXNU">http://www.poil.dk/s/#.VDRGNZTWXNU</a></div><div style="font-family:arial;font-size:small"><br></div><div style="font-family:arial;font-size:small">Makoto</div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 1, 2014 at 10:47 AM, nishanth reddy <span dir="ltr"><<a href="mailto:nishanth.reddy56@gmail.com" target="_blank">nishanth.reddy56@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">how can i get the average eeg power densities in the delta,theta,alpha and beta wave bands in the light period?<span class="HOEnZb"><font color="#888888"><br clear="all"><div><br></div>-- <br><div dir="ltr">Thanks&Regards<div><br></div><div>Nishanth </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">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 dir="ltr">Makoto Miyakoshi<br>Swartz Center for Computational Neuroscience<br>Institute for Neural Computation, University of California San Diego<br></div>
</div>