[Eeglablist] code for Contrast topographies?

Cedric Cannard ccannard at protonmail.com
Tue Sep 2 11:45:35 PDT 2025







Hi Sam,

Here is an example for plotting the scalp topography of a difference(here using the t-values from the paired t-test directly), and masking the non-significant electrodes if you have the mask (otherwise, remove the last two inputs).

peakFreq = f == 11; % frequency index for 11 Hz (f contains your frequency bins)

figure('Color','w');
topoplot(tvals(:, peakFreq), EEG.chanlocs, ...
 'emarker2',{find(mask(:,peakFreq)),'.','k',12,1}, ... % significant electrodes
 'verbose','off','colormap', colormap(turbo), 'whitebk','on', ...
 'pmask', mask(:,peakFreqs(iClust)));
 
 cb = colorbar();
 ylabel(cb,'T-values','Rotation',270,'fontweight','bold','fontsize',15); set(gcf,'color','w');


Cedric Cannard


> On Monday, September 1st, 2025 at 3:07 PM, Sam Roberts via eeglablist eeglablist at sccn.ucsd.edu wrote:
> 
> > Hi EEGLAB users,
> > 
> > I was wondering if anyone had any code they could share that would give a contrast topography between two conditions?
> > (e.g. Average signal power for condition A minus condition B)
> > 
> > Best Regards,
> > 
> > -Sam Roberts
> > 
> > PhD Student
> > 
> > Division of Psychology, Communication & Human Neuroscience
> > 
> > The University of Manchester
> > 
> > Connect with me on LinkedIn<https://urldefense.com/v3/__https://www.linkedin.com/in/sam-roberts-5b3261209/__;!!Mih3wA!FGaDItZrthHEmwofR19BmrvYu2pZjWuXHJSVSiFRoMZFrBlHZb1Du9eZ9rYwNKo2HCEkQhcR5LSbFJZbYPe2U9fYhKs5Lcl2D_veSpmsvOh7$ >
> > 
> > _______________________________________________
> > To unsubscribe, send an empty email to eeglablist-unsubscribe at sccn.ucsd.edu or visit https://sccn.ucsd.edu/mailman/listinfo/eeglablist .


More information about the eeglablist mailing list