I decided to download the last Fieldtrip version today, and i tried to run a script doing some montecarlo analysis tahta was previously working. It gave me a strange error:<div><br></div><div><div>selected 48 channels</div>
<div>selected 25 time bins</div><div>averaging over 1 frequency bins</div><div>Using the 2-D layout to determine the neighbours</div><div>??? Error using ==> ft_neighbourselection at 144</div><div>Method 'montecarlo' not known</div>
<div><br></div><div>Error in ==> statistics_wrapper at 241</div><div> cfg.neighbours = ft_neighbourselection(cfg,varargin{1});</div><div><br></div><div>Error in ==> ft_freqstatistics at 127</div><div>[stat, cfg] = statistics_wrapper(cfg, varargin{:});</div>
<div><br></div><div>Error in ==> Alpha_stats_montecarlo at 92</div><div> [stat] = ft_freqstatistics(cfg, TFRhann_base.data{var1,1:16}, TFRhann_base.data{var2,1:16});</div></div><div><br></div><div><br></div><div>Apparently, when it calls the neighbourselection function, it gives the cfg i specify with cfg.method = 'montecarlo'. Or it should be 'distance' or 'triangulation'.</div>
<div>Am i missing something relative to the latest Fieldtrip version?</div><div>I looked in the documentation but it seems the code hasn' t change.</div><div><br></div><div>Best regards, </div><div><br></div><div><br>
</div><div>Rodolphe Nenert, PhD</div><div><br></div>