[FieldTrip] ft_componentbrowser problem

jan-mathijs schoffelen jan.schoffelen at donders.ru.nl
Fri Feb 25 20:33:43 CET 2011


Dear Elli,

Apparently the ft_componentbrowser function cannot find  
inside_contour.m I know that ft_componentbrowser will soon be replaced  
by the more generic ft_databrowser, and it could be that in this  
process some changes have already been made, breaking the  
componentbrowser. Or perhaps something else is going on...
Either way, inside_contour.m is located in fieldtrip/plotting/private,  
and it cannot be seen by ft_componentbrowser, because this function is  
located at fieldtrip/. If you copy inside_contour to the directory  
fieldtrip/private I expect that your problem is solved.

Good luck,

Jan-Mathijs


On Feb 25, 2011, at 8:10 PM, Kanal Eliezer wrote:

> 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');
> ft_componentbrowser(cfg,components);
> ~~~~
>
> 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
>
>
> _______________________________________________
> fieldtrip mailing list
> fieldtrip at donders.ru.nl
> http://mailman.science.ru.nl/mailman/listinfo/fieldtrip

Dr. J.M. (Jan-Mathijs) Schoffelen
Donders Institute for Brain, Cognition and Behaviour,
Centre for Cognitive Neuroimaging,
Radboud University Nijmegen, The Netherlands
J.Schoffelen at donders.ru.nl
Telephone: 0031-24-3614793




More information about the fieldtrip mailing list