<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" id="owaParaStyle"></style>
</head>
<body fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Dear Fieltrippers,
<div><br>
</div>
<div>After running ft_connectivityanalysis on a subset of pre-processed resting-state EEG data the dimord is still listed as chan_freq_time (where the first dimension is simply all the pairwise channel comparisons). If I want to run subsequent network analysis
 on this the ft_networkanalysis require a chan_chan_freq_time matrix. Is there any way to convert this so that I can run the network analysis or am I missing a setting in the connectivity analysis that would give me that output?</div>
<div><br>
</div>
<div>This is the code I used (my entire resting-state recording has been replaced into 4 second segments in order to get 'trials' for the WPLI connectivity function:</div>
<div><br>
</div>
<div>
<p style="margin-right: 0px; margin-left: 0px; font-size: 10px; line-height: normal; font-family: 'Courier New';">
    cfg_freq = [];</p>
<p style="margin-right: 0px; margin-left: 0px; font-size: 10px; line-height: normal; font-family: 'Courier New';">
    cfg_freq.method = <span style="color: #b245f3">'wavelet'</span>;</p>
<p style="margin-right: 0px; margin-left: 0px; font-size: 10px; line-height: normal; font-family: 'Courier New';">
    cfg_freq.output = <span style="color: #b245f3">'powandcsd'</span>;</p>
<p style="margin-right: 0px; margin-left: 0px; font-size: 10px; line-height: normal; font-family: 'Courier New';">
    cfg_freq.channel = 1:64;</p>
<p style="margin-right: 0px; margin-left: 0px; font-size: 10px; line-height: normal; font-family: 'Courier New'; color: rgb(37, 153, 45);">
<span style="color: #000000">    cfg_freq.keeptrials =</span><span style="color: #b245f3">'yes'</span><span style="color: #000000">;
</span>%do not return an average of all trials for subsequent wpli analysis</p>
<p style="margin-right: 0px; margin-left: 0px; font-size: 10px; line-height: normal; font-family: 'Courier New';">
    cfg_freq.toi = [0.5:0.05:3.5];</p>
<p style="margin-right: 0px; margin-left: 0px; font-size: 10px; line-height: normal; font-family: 'Courier New'; color: rgb(37, 153, 45);">
<span style="color: #000000">    </span>%delta</p>
<p style="margin-right: 0px; margin-left: 0px; font-size: 10px; line-height: normal; font-family: 'Courier New';">
    cfg_freq.foi = [2:0.02:4];</p>
<p style="margin-right: 0px; margin-left: 0px; font-size: 10px; line-height: normal; font-family: 'Courier New'; color: rgb(37, 153, 45);">
<span style="color: #000000">    cfg_freq.width = 3; </span>%small width for low frequency</p>
<p style="margin-right: 0px; margin-left: 0px; font-size: 10px; line-height: normal; font-family: 'Courier New';">
    [freq_data.delta] = ft_freqanalysis(cfg_freq, data_iccleaned);   </p>
</div>
<div><br>
</div>
<div>
<p style="margin-right: 0px; margin-left: 0px; font-size: 10px; line-height: normal; font-family: 'Courier New';">
    cfg_conn = [];</p>
<p style="margin-right: 0px; margin-left: 0px; font-size: 10px; line-height: normal; font-family: 'Courier New';">
    cfg_conn.method = <span style="color: #b245f3">'wpli'</span>;</p>
<p style="margin-right: 0px; margin-left: 0px; font-size: 10px; line-height: normal; font-family: 'Courier New';">
    conn.delta = ft_connectivityanalysis(cfg_conn, freq_data.delta);</p>
</div>
<div><br>
</div>
<div><br>
</div>
<div>Cheers,</div>
<div><br>
</div>
<div>Richard </div>
</div>
</body>
</html>