[FieldTrip] diff_itc design matrix error

Karl Doron karl.doron at gmail.com
Tue Oct 9 00:54:25 CEST 2012


Hello,

I'm getting a design matrix error when running ft_freqstatistics method='diff_itc'. 

Error using ft_freqstatistics (line 265)
the number of observations in the design does not match
the number of observations in the data

However, the same data and design matrix do work when output='pow' and method='indepsamplesT'

I've pasted the design matrix and configuration below.

% Make design matrix
 design=zeros(1,size(freqCor.fourierspctrm,1)+ size(freqInc.fourierspctrm,1));
 
design(1,1:size(freqCor.fourierspctrm,1))=1;
 
design(1,(size(freqCor.fourierspctrm,1)+1):size(freqCor.fourierspctrm,1)+size(freqInc.fourierspctrm,1))=2;
 
imagesc(design)
 
% Freqstats configuration
cfg           = [ ];
cfg.statistic ='diff_itc';
cfg.method    ='montecarlo';
cfg.parameter ='fourierspctrm';
cfg.complex   ='absdiff';
cfg.design    ='design';
cfg.ivar      = 1;
cfg.numrandomization = 500;
 
 
[ITC_diff]=ft_freqstatistics(cfg, freqCor, freqInc);


Thanks for any help,

karl


Karl  Doron, Ph.D.
UC, Santa Barbara



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


More information about the fieldtrip mailing list