[FieldTrip] Imaginary part of coherence, 'indepsamplesZcoh'

Ramin Azodi raminazodiaval at gmail.com
Fri Apr 5 09:49:47 CEST 2013


Hello,
In case that I want just to calculate imaginary part of coherence instead
of coherence with 'indepsamplesZcoh', what kind of operation should I do
for that? can anybody lead me through the right way ?
You can find my code as following,

cfg = [];
cfg.method = 'mtmfft';
cfg.output = 'fourier';
cfg.taper  = 'hanning';
cfg.foilim = [12 20];
freq1 = ft_freqanalysis(cfg, data1);
cfg = [];
cfg.method = 'mtmfft';
cfg.output = 'fourier';
cfg.complex = 'imag';
cfg.taper  = 'hanning';
cfg.foilim = [12 20];
freq2 = ft_freqanalysis(cfg, data2);
cfg = [];
cfg.method    = 'montecarlo';
cfg.statistic = 'indepsamplesZcoh';
cfg.parameter = 'fourierspctrm';
cfg.computecritval = 'yes';
cfg.numrandomization = 500;
cfg.design = [ones(size(freq1.fourierspctrm,1),1);
2*ones(size(freq2.fourierspctrm,1),1)]';
cfg.label     = freq.label;
stat = ft_freqstatistics(cfg, freq,freq1);

Thanks in advanced for your consideration.
Best Regards,
Ramin Azodi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20130405/8f3a5342/attachment-0001.html>


More information about the fieldtrip mailing list