<div>I had a similar problem. It was due to having the same function in EEGLAB. If you are using EEGLAB make sure to set the path below fieldtrip.</div>
<div> </div>
<div>Best,</div>
<div>Raquel <br><br></div>
<div class="gmail_quote">On Mon, Dec 28, 2009 at 3:45 PM, Nathan Hutcheson <span dir="ltr"><<a href="mailto:nhutche@gmail.com">nhutche@gmail.com</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">Hello,<br><br>I am a graduate student at UAB and am having a problem getting Fieldtrip to<br>plot my EEG preprocessed data using the topoplotTFR function. Below is what<br>
I entered into the Matlab command line:<br><br>addpath(genpath('/usr/local/pkg/MATLAB/toolbox/eeglab7_1_3_14b/external/fie<br>ldtrip-20090727/')) '<br><br>cfg = [];<br>cfg.xlim = [-.5 -.25];<br>%cfg.zlim = [-1.5e-27 1.5e-27];<br>
cfg.ylim = [8 12];<br>cfg.baseline = [-0.5 -0.1];<br>cfg.baselinetype = 'absolute';<br>cfg.showlabels = 'markers';<br>figure<br>topoplotTFR(cfg,TFRhann)<br><br>This is the error message I get:<br>
<br>??? Error using ==> topoplot at 1019<br>Odd number of input arguments??<br><br>Error in ==> topoplotER at 482<br>topoplot(cfg,chanX,chanY,datavector,chanLabels);<br><br>Error in ==> topoplotTFR at 101<br>cfg=topoplotER(cfg, varargin{:});<br>
<br>Error in ==> tempFieldtriptest at 11<br>topoplotTFR(cfg,TFRhann)<br><br>Any ideas/ suggestions?<br><br>----------------------------------<br>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 <a href="http://listserv.surfnet.nl/archives/fieldtrip.html" target="_blank">http://listserv.surfnet.nl/archives/fieldtrip.html</a> and <a href="http://www.ru.nl/neuroimaging/fieldtrip" target="_blank">http://www.ru.nl/neuroimaging/fieldtrip</a>.<br>
</blockquote></div><br>
<p>----------------------------------</p>
<p>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.</p>
<p> http://listserv.surfnet.nl/archives/fieldtrip.html</p>
<p> http://www.ru.nl/fcdonders/fieldtrip/</p>