TFR: labels in data and labels in layout do not match

Ingrid Nieuwenhuis ingrid.nieuwenhuis at FCDONDERS.RU.NL
Fri Feb 23 21:24:43 CET 2007


Hi Sameer,

What is TFRmult.label? If everything did what it should, that should be a
cell array with the labels of the 306 channels. The names of those channels
should match the names in the NM306all.lay (5th column).

That it worked for the ica plotting is because there you called topoplot.m
directly, and now you use topoplotTFR.m, in the last function the labels are
checked.

Hope this helps,
Ingrid

-----Original Message-----
From: FieldTrip discussion list [mailto:FIELDTRIP at NIC.SURFNET.NL] On Behalf
Of Sameer Walawalkar
Sent: Friday, February 23, 2007 8:37 PM
To: FIELDTRIP at NIC.SURFNET.NL
Subject: [FIELDTRIP] TFR: labels in data and labels in layout do not match

Hi,

I am listing the settings and command used to plot time frequency analysis
results. The analysis was done by blindly copying the material on the
online example script.

cfg = [];
cfg.output       = 'pow';
cfg.channel      = 'MEG';
cfg.method       = 'mtmconvol';
cfg.foi          = 1:2:30;
cfg.t_ftimwin    = 5./cfg.foi;
cfg.tapsmofrq    = 0.4 *cfg.foi;
cfg.toi          = -0.5:0.05:1.5;
cfg.pad          = 'maxperlen';

TFRmult = freqanalysis(cfg,data);

the analysis works well giving the TFRmult variable. But


cfgTFR =

        output: 'pow'
       channel: 'MEG'
        method: 'mtmconvol'
           foi: [20 22 24 26 28 30]
     t_ftimwin: [0.2500 0.2273 0.2083 0.1923 0.1786 0.1667]
     tapsmofrq: [8 8.8000 9.6000 10.4000 11.2000 12]
           toi: [1x41 double]
           pad: 'maxperlen'


multiplotTFR(cfgTFRout, TFRmult);

multiplotTFR(cfgTFRout, TFRmult);
reading layout from file NM306all.lay
??? Error using ==> multiplotTFR
labels in data and labels in layout do not match


The NM306all.lay file has worked for ICAs  in the past (used as shown
below).

for i = 1 : 8
subplot(2,4,i);
topoplot(cfg, lay.prj(1:307,1), lay.prj(1:307,2), compRR_orig.topo(:,i));
% for all
title(num2str(i));
end

thanks,
sameer



More information about the fieldtrip mailing list