troubleshooting topoplotER

Sameer Walawalkar sameer at ANDREW.CMU.EDU
Sat Apr 7 23:03:19 CEST 2007


Hello,

While using topoplotER using,

cfgTLA = [];
cfgTLA.xlim = [0 .3]    ;
cfgTLAout.layout =
'/mnt/condor2/sameer/KarmaCond/DataNeuroMagCondor2/Analysis/NM306grad.lay';

figure
topoplotER(cfgTLA,avgLL_1_One)

I get the following error.
??? Undefined function or variable "pnt".

Error in ==> createlayout at 209
     pnt = pnt(ind,:);



To troubleshoot, on line 198, sel is empty matrix.  So Line 205

pnt(i,:) = mean([meanpnt1; meanpnt2; meanpnt3], 1);

does not get executed.

So I changed
ch1 = sprintf('MEG %03d1', i);
ch2 = sprintf('MEG %03d2', i);
ch3 = sprintf('MEG %03d3', i);

to
ch1 = sprintf('MEG%03d1', i);
ch2 = sprintf('MEG%03d2', i);
ch3 = sprintf('MEG%03d3', i);

ANow things both work and seem sensible. I just wanted to both bring it to
your attention and make sure that it is indeed an o.k fix.

Best,
sameer



More information about the fieldtrip mailing list