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

Robert Oostenveld r.oostenveld at FCDONDERS.RU.NL
Mon Feb 26 14:39:28 CET 2007


Hi Sameer

On 23 Feb 2007, at 20:36, Sameer Walawalkar wrote:
> cfgTFR =
>        output: 'pow'
>       channel: 'MEG'
> ...
>
> 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

I suspect the problem might be related to channel selection (do "help
channelselection"). The indication
   cfg.channel = 'MEG'
results in a selection of known MEG channels, but that selection was
implemented for the CTF system (where MEG channels start with the
letter "M") and might not work for your Neuromag data.

please try
  cfg1.channel = 'MEG'  % or something else
  cfg2.channel = channelselection(cfg1.channel, data.label)
and you will see which channels are selected for subsequent
processing (in this case plotting, but the same applies to all other
analyses).

best regards,
Robert

PS note that you can do
   dbstop if error
on the matlab command line and you will automatically jump to the
line where the error happens, which facilitates debugging.



More information about the fieldtrip mailing list