.lay layout file for neuromag 306 channels

Robert Oostenveld r.oostenveld at FCDONDERS.RU.NL
Mon Feb 19 20:41:54 CET 2007


On 19 Feb 2007, at 19:31, Sameer Walawalkar wrote:
>> topoplot([], lay.prj(1:307,1), lay.prj(1:307,2), compRR_orig.topo
>> (:,1))
>> ??? Error using ==> topoplot
>> Flag arguments must be strings

I suspect that you are mixing up EEGLAB and FieldTrip.

 >> cd ~/matlab/fieldtrip
 >> topoplot([], randn(100,1), randn(100,1), randn(100,1))
??? Error using ==> topoplot
When four input arguments are supplied, the following syntax should
be used:
topoplot(cfg,X,Y,datavector);

 >> cd ~/matlab/eeglab/functions
 >> topoplot([], randn(100,1), randn(100,1), randn(100,1))
??? Error using ==> topoplot
Flag arguments must be strings

Your error corresponds with the EEGLAB one. Note that the FT version
wants the first argument as a struct, so you cannot specify []. I
will fix the empty input struct. For the moment you can do cfg.dummy=
[] to make a structure of the cfg and the example above will work.

Robert



More information about the fieldtrip mailing list