<div dir="ltr">Dear community,<div><br></div><div>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. </div><div><br></div><div>Any help would be appreciated!</div><div><br></div><div>Thank you,</div><div>Carolina Ogawa</div><div><br></div><div>====================================================</div><div><br></div><div>Here's my script:</div><div><br><font face="monospace">% Compute time-freq representation<br> cfg = [];<br> cfg.output = 'pow'; OR 'fourier' => I tried both<br> cfg.channel = 'all';<br> cfg.keeptrials = 'yes'; % keep individual trials<br> cfg.method = 'wavelet'; OR 'tfr' => I tried both<br> cfg.foi = 30:0.5:50; % Freq of interest<br> cfg.toi = -0.1:0.05:0.6; % Epoch limits<br> cfg.width = 12; <br></font><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font face="monospace"> TF_data = ft_freqanalysis(cfg, raw_data);</font></div><div><font face="monospace"><br></font></div></blockquote><font face="monospace">% Select time interval of interest <br> cfg = [];<br> cfg.latency = [0 0.500]; % evoked and induced gamma time window<br> cfg.avgovertime = 'no';<br> epoch = ft_selectdata(cfg,
TF_data);</font></div><div><font face="monospace"><br></font></div><div><font face="monospace">% Compute dwPLI (ft_connectivityanalysis)<br> cfg = [];<br> cfg.method ='wpli_debiased'; <br> dwPLI1 = ft_connectivityanalysis(cfg, epoch); ==> dwPLI1.wpli_debiasedspctrm: [0×41×11 double]<br></font><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><br></div></blockquote></div></div>