<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Dear David,<div><br></div><div>maybe you could also try a small script. </div><div>The script below calculates the spectrum and find the max between 8 and 12 Hz for channel 1</div><div><br></div><div><div><div><i>figure; [spec freq ] = pop_spectopo(EEG, 1, [EEG.xmin EEG.xmax]*1000, 'EEG' , 'percent', 15, 'freqrange',[2 25],'electrodes','off');</i></div></div><div><i>[tmp f1] = min(abs(freq-8));</i></div><div><i>[tmp f2] = min(abs(freq-12));</i></div><div><i>[tmp indmax] = max(spec(1,f1:f2))</i></div><div><br></div><div><i>freq(f1+indmax-1)</i></div><div><i><br></i></div><div><i>ans =</i></div><div><i><br></i></div><div><i> 11.1850</i></div><div><br></div><div>Hope this helps,</div><div><br></div><div>Arno</div><div><br></div><div>On 27 Oct 2012, at 16:08, Simon-Shlomo Poil wrote:</div></div><div><div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Dear David,<br><br>I don't think you can calculate the dominant frequency directly in<br>EEGLAB. However, you can using a plugin the Neurophysiological<br>Biomarker Toolbox (<a href="http://www.nbtwiki.net">http://www.nbtwiki.net</a>). Unfortunately we do not<br>yet have a tutorial on how you calculate the dominant frequency, but<br>you simply use the menu Compute Biomarkers | For multiple NBT signal |<br>Spectral Biomarkers in the NBT menu.<br><br>That will generate a nbt_PeakFit biomarker with many different<br>spectral measures. One of then is CentralFrequency. Which is the<br>"dominant frequency" in different frequency bands, it will also tell<br>you the power of this frequency in CentralPower.<br><br>You can also call the function directly, it's called nbt_doPeakFit<br><br>Best regards,<br>Simon<br><br>--<br>Simon-Shlomo Poil<br><br><br>2012/10/26 David Gilbert <<a href="mailto:dgilbert@siu.edu">dgilbert@siu.edu</a>>:<br><blockquote type="cite">How can one Calculation of frequency power centroid for a specific band in<br></blockquote><blockquote type="cite">EEGLAB. For example, the dominant frequency (actually centroid frequency)<br></blockquote><blockquote type="cite">for alpha?<br></blockquote><blockquote type="cite">Thanks,<br></blockquote><blockquote type="cite">Dave Gilbert<br></blockquote>_______________________________________________<br>Eeglablist page: <a href="http://sccn.ucsd.edu/eeglab/eeglabmail.html">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></div></blockquote></div><br></div></body></html>