[Eeglablist] Extracting data in frequency ranges from dataset

Makoto Miyakoshi mmiyakoshi at ucsd.edu
Wed Mar 12 19:12:14 PDT 2014


Dear Nick,

Recently there was a similar query. Let me copy the reply for you. If it's
not what you want please let us know.

Makoto

%%%%%%%%%%%%%%%%%%%
% 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 = 10^(mean(spectra(deltaIdx))/10);
thetaPower = 10^(mean(spectra(thetaIdx))/10);
alphaPower = 10^(mean(spectra(alphaIdx))/10);
betaPower  = 10^(mean(spectra(betaIdx))/10);
gammaPower = 10^(mean(spectra(gammaIdx))/10);
%%%%%%%%%%%%%%%%%


2014-03-11 16:35 GMT-07:00 Nick Wan <nickwan at aggiemail.usu.edu>:

> Hi all,
>
> 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?
>
> I'm hoping there's a way I can do it without having to create separate
> datasets for each frequency range. Thanks.
>
>
>
> --
> Nick Wan
> Graduate Student
>
> Multisensory Cognition Lab
> Department of Psychology
> Utah State University
>
> Office: HSRC 004
> Phone: 435-554-8788
> Blog: truebra.in
>
> _______________________________________________
> Eeglablist page: http://sccn.ucsd.edu/eeglab/eeglabmail.html
> To unsubscribe, send an empty email to
> eeglablist-unsubscribe at sccn.ucsd.edu
> For digest mode, send an email with the subject "set digest mime" to
> eeglablist-request at sccn.ucsd.edu
>



-- 
Makoto Miyakoshi
Swartz Center for Computational Neuroscience
Institute for Neural Computation, University of California San Diego
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sccn.ucsd.edu/pipermail/eeglablist/attachments/20140312/2002fcc2/attachment.html>


More information about the eeglablist mailing list