[FieldTrip] ft_componentbrowser problem

Kanal Eliezer ekanal at cmu.edu
Fri Feb 25 20:10:59 CET 2011

Hello -

I have a simple script which seems to be failing on ft_componentbrowser, and I can't figure out why. The script is as follows:

cfg = struct('method','fastica','channel','M*','numcomponent','10');
components = ft_componentanalysis(cfg, data_preprocessed);

cfg = struct('comp','1:10','trial','1','layout','neuromag306all.lay');

I increase the The script fails at the final line with the following error:

??? Undefined function or method 'inside_contour' for input arguments of type 'double'.

Error in ==> ft_plot_topo at 92
  inside  = inside_contour([chanX chanY], mask{1});

Error in ==> ft_componentbrowser>plottopography at 172
    ft_plot_topo(cfg.layout.pos(cfg.chanidx.lay,1), cfg.layout.pos(cfg.chanidx.lay,2), ...

Error in ==> ft_componentbrowser at 116
plottopography([], cfg, comp)

Any ideas as to why this isn't working? I'm pretty stuck at this point. Thanks -

Elli Kanal

Eliezer Kanal, Ph.D.
Postdoctoral Fellow
Center for the Neural Basis of Cognition
Carnegie Mellon University
4400 Fifth Ave, Suite 115
Pittsburgh PA 15213
P: 412-268-4115
F: 412-268-5060

More information about the fieldtrip mailing list