topoplot error

Vladimir Litvak v.litvak at ION.UCL.AC.UK
Fri Jan 4 11:24:35 CET 2008


This probably has to do with EEGLAB being above Fieldtrip in your Matlab
path with EEGLAB's version of topoplot being called instead of Fieldtrip's.
You need to put Fieldtrip on top and make sure it stays there because EEGLAB
moves itself to the top each time it's called. Perhaps you should add a line
modifying the path to your script.

Best,

Vladimir

-----Original Message-----
From: FieldTrip discussion list [mailto:FIELDTRIP at NIC.SURFNET.NL] On Behalf
Of Frederic Roux
Sent: Friday, January 04, 2008 10:04 AM
To: FIELDTRIP at NIC.SURFNET.NL
Subject: [FIELDTRIP] topoplot error

Hi everybody,

I've been trying to use the topoplotTFR function but constantly receive the
error message 'Odd number of arguments?'.
Has anyone ever encountered that problem?

I used the following commands:

cfg = [];
cfg.layout = prepare_layout(data);
cfg.baselinetype = 'relative';
cfg.xparam = 'time';
cfg.yparam = 'freq';
cfg.zparam = 'powspctrm';
cfg.xlim = 'maxmin';
cfg.ylim = 'maxmin';
cfg.zlim = 'maxmin';

topoplotTFR(cfg,data)

topoplotTFR calls topoplotER which again calls topoplot.

The problem seems to be related to the following lines of code:

in topoplotER @ line 364:

topoplot(tmpcfg,chanX,chanY,datavector,chanLabels);

and in topoplot @ line 957:

if nargs> 2
  if ~(round(nargs/2) == nargs/2)
    error('Odd number of input arguments??')
  end

I don't get any further. Can anyone help me, please?

Regards,

Frederic
_________________________________________________________________
Importieren Sie ganz einfach Ihre E-Mail Adressen in den Messenger!
http://messenger.live.de/community/neuekontakte_adressimport.html
----------------------------------
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.

----------------------------------
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