sourcestatistics

Hoi Fei Kwok h.f.kwok at BHAM.AC.UK
Fri Sep 16 12:08:39 CEST 2005


Hi,

We've been trying to use sourcestatistics.m but I found that first of all a
few private functions are missing. These include:
sourcestatistics_parametric.m
sourcestatistics_randomization.m
and sourcestatistics_randcluster.m

Therefore, everytime we set the cfg.method to 'randomization'
or 'randcluster', it complaint that it could not find the functions.

Another problem occurred when we tried to set the cfg.approach to 'stat':
source1=besa2fieldtrip('AM3001_ld.dat');
source2=besa2fieldtrip('CGi2604_ld.dat');
cfg=[];
cfg.parameter='pow';
cfg.approach='stats';
cfg.method='ttest';
[stat]=sourcestatistics(cfg,source1,source2);

Then we got the following error message:
??? Operands to the || and && operators must be convertible to logical
scalar values.

Error in ==> fieldtrip-20050901\private\statistics_wrapper at 65
    if isfield(varargin{1}, 'pos') && (length(varargin{i}.pos)~=length
(varargin{1}.pos) || ~all(varargin{i}.pos==varargin{1}.pos))

Error in ==> sourcestatistics at 86
  stat = statistics_wrapper(cfg, varargin{:});


Can anyone help please?

Hoi Fei



More information about the fieldtrip mailing list