[FieldTrip] invalid MEX file error in clusterstat

Ingrid Nieuwenhuis inieuwenhuis at berkeley.edu
Wed Apr 13 20:51:46 CEST 2011


Hi

I'm running ft_sourcestatistics with the following cfg:

%%% cluster statistics
cfg = [];
cfg.parameter           = 'stat';
cfg.method              = 'montecarlo';
cfg.statistic           = 'depsamplesT';
cfg.clusteralpha        = 0.05;
cfg.numrandomization    = 1000;
cfg.correctm            = 'cluster';
cfg.design(1,1:2*Nsub)  = [ones(1,Nsub) 2*ones(1,Nsub)];
cfg.design(2,1:2*Nsub)  = [1:Nsub 1:Nsub];
cfg.ivar                = 1;
cfg.uvar                = 2;
cfg.alpha               = 0.025; %one sided alpha!!

stat_clus = ft_sourcestatistics(cfg, Rem{1:Nsub}, Rec{1:Nsub});


and get the below error, am I doing anything wrong (I must admit, I'm 
running a 2 year old script (which has already generated new data out of 
2 year old source data without any errors: very impressive backward 
compatibility!), or is there just a MEX file missing?

Thanks,
Ingrid

??? Invalid MEX-file 
'/home/common/matlab/fieldtrip/external/spm8/spm_bwlabel.mexa64': 
/home/common/matlab/fieldtrip/external/spm8/spm_bwlabel.mexa64: 
undefined symbol: mxCreateNumericArray_700.

Error in ==> fieldtrip/private/clusterstat at 189
             [posclusobs, posnum] = spm_bwlabel(tmp, 6); % use 
spm_bwlabel for source data to avoid usage of image toolbox

Error in ==> statistics_montecarlo at 322
   [stat, cfg] = clusterstat(cfg, statrand, statobs,'issource',issource);

Error in ==> fieldtrip/private/statistics_wrapper at 285
     [stat, cfg] = statmethod(cfg, dat, cfg.design, 'issource',issource);

Error in ==> ft_sourcestatistics at 114
     [stat, cfg] = statistics_wrapper(cfg, varargin{:});

-- 
Ingrid Nieuwenhuis PhD
Sleep and Neuroimaging Laboratory
Department of Psychology
University of California, Berkeley
California 94720-1650




More information about the fieldtrip mailing list