<div dir="ltr"><div dir="ltr"><div>Dear all,</div><div><br></div><div>I've got a question regarding extracting pairwise phase consistency of individual trials for each subject.</div><div><br></div><div>Using the connectivity analyses tutorial as a reference, I extracted the PPC using the fourier information from the mtmfft (dpss taper).</div><div><br></div><div>Here's an example of my code:</div><div><br></div><div><div> cfg = [];</div><div> cfg.output = 'fourier';</div><div> cfg.channel = {'all'};</div><div> cfg.method = 'mtmfft';</div><div> cfg.keeptrials = 'yes';</div><div> cfg.tapsmofrq = 5;</div><div> </div><div> % find the index for the c200 condition</div><div> pre_c200_idx = find(data8.trialinfo == 200);</div><div> </div><div> cfg.trials = pre_c200_idx;</div><div> cfg.foilim = [0 100]; % either the full range of frequencies (data2.hdr.Fs/2) or up to 100 Hz</div><div> cfg.taper = 'dpss';</div><div> HLF_pre_c200 = ft_freqanalysis(cfg, data8);</div></div><div><br></div><div>The PPC is extracted using this code:</div><div><br></div><div><div> cfg = [];</div><div> cfg.trials = 'all';</div><div> cfg.keeptrials = 'yes';</div><div> cfg.channel = {'all'};</div><div> cfg.removemean = 'yes';</div><div> </div><div> cfg.method = 'wppc';</div><div> cfg.channelcmb = {cfg.channel, cfg.channel};</div><div> </div><div> HLF_pre_c200wppc = ft_connectivityanalysis(cfg, HLF_pre_c200);</div></div><div><br></div><div>Although I've specified to keep individual trials, my output is still a 'chan_freq' dimord variable. It does not contain any individual trial PPC information. Is there a way to extract the connectivity for individual trials?</div><div><br></div><div>Thanks.</div><div><br></div><div>Cheers,</div><div>Hweeling</div><div><br></div></div>
</div>