[FieldTrip] Error in correlation analysis with ft_freqstatistics

Rodolphe Nenert batrod at gmail.com
Tue Jan 25 21:02:02 CET 2011

Dear Fieldtrip Users,

im actually trying to do a correlation analysis between frequency power and
behavioral results.
The problem is when i change the design matrix containing the
classical independent variables to behavioral scores, as indicate in the
walktrough section of the fieldtrip website :

cfg.design = [ .1 .2 .4 .3 etc...];
cfg.ivar = 1;

Then, Matlab gives me the following errors:

??? Error using ==> statfun_indepsamplesF at 55
Invalid specification of the independent variable in the design array.

Error in ==> statistics_montecarlo at 241
  [statobs, cfg] = statfun(cfg, dat, design);

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

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

Does anyone have an example of a script for such analysis that works?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20110125/facd1b43/attachment-0001.html>

More information about the fieldtrip mailing list