[Eeglablist] How to make two global field power figures in the same figure

Dongyang Yan ydyxjsk at gmail.com
Mon Oct 4 01:03:03 PDT 2021

Dear all,
I am trying to use the codes below for GFP calculation, but I have two
conditions. I want to GFP of two conditions in the same figure, so it is
much easier for me to make comparisons for differences.

if length(size(EEG.data))==3

 gfp = std(mean(EEG.data,3));



plot(EEG.times, std(mean(EEG.data,3)), 'r', 'linewidth', 3);

I tried to load only two datasets and use ALLEEG, but failed. Can you help
share any suggestions to me? Many thanks.

gfp = std(mean(ALLEEG.data,3));


More information about the eeglablist mailing list