How to make two global field power figures in the same figure?

if length(size(EEG.data))==3
gfp = std(mean(EEG.data,3));
end
figure;
plot(EEG.times, std(mean(EEG.data,3)), 'r', 'linewidth', 3);
I am trying to use the above codes 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 comparison for difference.
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));

Answers (0)

Categories

Find more on Creating, Deleting, and Querying Graphics Objects in Help Center and File Exchange

Asked:

on 15 Apr 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!