problem w/ cfg.highlight using topoplot to show samples in sig clusters

Andrew Smart andrew.smart at NYU.EDU
Fri Aug 24 18:41:10 CEST 2007


Hi,
I have run a cluster analysis comparing two conditions on channel data and have 1 pos significant 
cluster and 1 negative significant cluster. When I run the following code from the tutorial to plot:

UNvsID=grandavgUN;
UNvsID.avg=UNvsID.avg-grandavgID.avg;

pos=stat.posclusterslabelmat==1;
neg=(stat.negclusterslabelmat==1)*(-1);

j = [0:0.05:0.5];
m = [1:15:301];

for k=1:10;
subplot(4,5,k);
cfg=[];
cfg.xlim=[j(k) j(k+1)];
pos_int = mean(pos(:,m(k):m(k+1))')';
neg_int = mean(neg(:,m(k):m(k+1))')';
cfg.highlight=find(pos_int==1|neg_int==-1);
cfg.comment = 'xlim';
cfg.commentpos = 'title';
cfg.layout = 'CTF275.lay';
topoplotER(cfg,UNvsID)
end

the raw effect is plotting but the samples belonging to the significant clusters are not highlighted, 
as on the tutorial page. So I can't tell when and where the effect is.

 When looking at the topoplot function cfg.highlight does not appear to be an option anywhere. 
Do I need a newer version of Fieldtrip? The one I am using now is from 2007/08/01. 

Thanks for any help!
andy

----------------------------------
The aim of this list is to facilitate the discussion between users of the FieldTrip  toolbox, to share experiences and to discuss new ideas for MEG and EEG analysis. See also http://listserv.surfnet.nl/archives/fieldtrip.html and http://www.ru.nl/fcdonders/fieldtrip.



More information about the fieldtrip mailing list