[FieldTrip] ft_connectivityanalysis output is empty
Carolina Ogawa
carolyogawa at gmail.com
Thu Oct 29 16:24:09 CET 2020
Dear community,
I'm trying to run the ft_connectivityanalysis function, however, its output
is empty (wpli_debiasedspctrm: [0×41×11 double]). I wondered if this
problem was due to the cfg.output or cfg.method selected for the
ft_freqanalysis, but none of my attempts has worked so far as I keep
getting the same problem, i.e. empty output from ft_connectivity analysis.
Any help would be appreciated!
Thank you,
Carolina Ogawa
====================================================
Here's my script:
% Compute time-freq representation
cfg = [];
cfg.output = 'pow'; OR 'fourier' => I tried both
cfg.channel = 'all';
cfg.keeptrials = 'yes'; % keep individual trials
cfg.method = 'wavelet'; OR 'tfr' => I tried both
cfg.foi = 30:0.5:50; % Freq of interest
cfg.toi = -0.1:0.05:0.6; % Epoch limits
cfg.width = 12;
TF_data = ft_freqanalysis(cfg, raw_data);
% Select time interval of interest
cfg = [];
cfg.latency = [0 0.500]; % evoked and induced gamma time window
cfg.avgovertime = 'no';
epoch = ft_selectdata(cfg, TF_data);
% Compute dwPLI (ft_connectivityanalysis)
cfg = [];
cfg.method ='wpli_debiased';
dwPLI1 = ft_connectivityanalysis(cfg, epoch); ==>
dwPLI1.wpli_debiasedspctrm: [0×41×11 double]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20201029/8708e7fa/attachment.htm>
More information about the fieldtrip
mailing list