[Eeglablist] Output values for absolute and relative power
Ruth Laryea
pinaaki2005 at gmail.com
Wed May 2 20:02:15 PDT 2018
Dear eeglablist,
Can anyone help me acquire scripts/ plugin to generate relative and
absolute power values of some EEG data?
I need to calculate relative alpha power, delta/alpha ratio and paired
channel brain symmetry index (pdBSI) (according to the methods of Finnigan
et al 2007 andSheorajpanday et al 2009).
All I found in eeglablist archives was the script below shared by Makoto in
2015
%%%%%%%%%%%%%%%%%%%
% for your epoched data, channel 2
[spectra,freqs] = spectopo(EEG.data(2,:,:), 0, EEG.srate);
% delta=1-4, theta=4-8, alpha=8-13, beta=13-30, gamma=30-80
deltaIdx = find(freqs>1 & freqs<4);
thetaIdx = find(freqs>4 & freqs<8);
alphaIdx = find(freqs>8 & freqs<13);
betaIdx = find(freqs>13 & freqs<30);
gammaIdx = find(freqs>30 & freqs<80);
% compute absolute power
deltaPower = mean(10.^(spectra(deltaIdx)/10));
thetaPower = mean(10.^(spectra(thetaIdx)/10));
alphaPower = mean(10.^(spectra(alphaIdx)/10));
betaPower = mean(10.^(spectra(betaIdx)/10));
gammaPower = mean(10.^(spectra(gammaIdx)/10));
%%%%%%%%%%%%%%%%%
I have very little scripting ability
Thanks in advance
Ruth
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sccn.ucsd.edu/pipermail/eeglablist/attachments/20180503/634995d0/attachment.html>
More information about the eeglablist
mailing list