freqstastics script

Bonin, Claudia (NIH/NINDS) [F] boninc at NINDS.NIH.GOV
Wed Sep 9 18:26:00 CEST 2009

I am trying to do statistics on time-frequency data across 16 subjects, averaging over channels. I received back the following error about 'neighbourselection' which means nothing to me.....Does anyone have any idea what might be wrong here? I have pasted in the exact message below.

>> cfg.statistic = 'kruskalwallis';
>> cfg.method = 'stats';
>> [s] = freqstatistics(cfg, fr, fr);
averaging over 3 channels
selected 50 time bins
selected 41 frequency bins
Warning: PACK can only be used from the MATLAB command line. 
> In fieldtrip/private/prepare_timefreq_data at 305
  In fieldtrip/private/statistics_wrapper at 167
  In freqstatistics at 44
??? Undefined function or method 'neighbourselection' for input arguments of type

Error in ==> statistics_wrapper at 181
    cfg = neighbourselection(cfg,varargin{1});

Error in ==> freqstatistics at 44
[stat] = statistics_wrapper(cfg, varargin{:});
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 and

More information about the fieldtrip mailing list