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

Sameer Walawalkar sameer at ANDREW.CMU.EDU
Fri Feb 23 20:36:31 CET 2007


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