[Eeglablist] get a global field power for multiple datasets

Clement Lee cll008 at eng.ucsd.edu
Fri Sep 20 10:20:25 PDT 2019


Hi Kexin,

There's more elegant solutions, but to get the job done, you can simply
loop over the code you copied. Depending on data size, it may make sense to
load all datasets into EEGLAB and loop through the ALLEEG data structure;
otherwise, you can loop through the 24 datasets and load each one to
calculate GFP.

Best,
Clement Lee
Applications Programmer
Swartz Center for Computational Neuroscience
Institute for Neural Computation, UC San Diego
858-822-7535


On Fri, Sep 20, 2019 at 8:57 AM 熊可欣 <xiongkexinkuma at gmail.com> wrote:

> Dear all
>
> I was wondering if there’s a way to select the time windows of interest
> using a global measure of components based on Global Field Power (GFP)?
> I found that the following code can only calculate individual GFP. I
> wonder if I can get the GFP for a group of datasets (say 24 subjects)?
>
> if length(size(EEG.data))==3
>     gfp = std(mean(EEG.data,3));
> end
>
> figure;
> plot(EEG.times, mean(EEG.data,3), 'k');
> hold on;
> plot(EEG.times, std(mean(EEG.data,3)), 'r', 'linewidth', 3);
>
> Thank you in advance!
>
> Kexin
>
>
> Windows 10 版のメールから送信
>
> _______________________________________________
> 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


More information about the eeglablist mailing list