<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.E-MailFormatvorlage17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Hi all,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt">I’m new in fieldtrip and I try to get the cfg.</span><span style="font-size:12.0pt;color:black">channelcmb to work, because I want to plot the connectivity between the channels
of different laminar electrodes,<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt;color:black">let’s say the connectivity between channel 1:24 and 25:38</span><span style="font-size:12.0pt"><o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I tried the following:<o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:black">cfg = [];</span><span style="font-size:12.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:black">cfg.method =
</span><span style="font-size:10.0pt;font-family:"Courier New";color:#A020F0">'mtmfft'</span><span style="font-size:10.0pt;font-family:"Courier New";color:black">;</span><span style="font-size:12.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:black">cfg.taper =
</span><span style="font-size:10.0pt;font-family:"Courier New";color:#A020F0">'dpss'</span><span style="font-size:10.0pt;font-family:"Courier New";color:black">;</span><span style="font-size:12.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:black">cfg.output =
</span><span style="font-size:10.0pt;font-family:"Courier New";color:#A020F0">'fourier'</span><span style="font-size:10.0pt;font-family:"Courier New";color:black">;</span><span style="font-size:12.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:black">cfg.tapsmofrq = 1;</span><span style="font-size:12.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:black">freq = ft_freqanalysis(cfg, data)</span><span style="font-size:12.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt;font-family:"Courier New""><o:p> </o:p></span></p>
<p class="MsoNormal">The output is:<o:p></o:p></p>
<p class="MsoNormal">>> freq <o:p></o:p></p>
<p class="MsoNormal">freq = <o:p></o:p></p>
<p class="MsoNormal"> label: {3x1 cell}<o:p></o:p></p>
<p class="MsoNormal"> dimord: 'rpttap_chan_freq'<o:p></o:p></p>
<p class="MsoNormal"> freq: [1x101 double]<o:p></o:p></p>
<p class="MsoNormal"> fourierspctrm: [500x3x101 double]<o:p></o:p></p>
<p class="MsoNormal"> cumsumcnt: [500x1 double]<o:p></o:p></p>
<p class="MsoNormal"> cumtapcnt: [500x1 double]<o:p></o:p></p>
<p class="MsoNormal"> cfg: [1x1 struct]<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I then run <o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><span style="font-size:12.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New"">cfg = [];</span><span style="font-size:12.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New"">cfg.method = 'coh';</span><span style="font-size:12.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New"">cfg.channelcmb = {freq.label{1} freq.label{2};freq.label{2} freq.label{1}};
</span><span style="font-size:12.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New"">coh= ft_connectivityanalysis(cfg, freq);</span><span style="font-size:12.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">And the output here is:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">>> coh<o:p></o:p></p>
<p class="MsoNormal">coh = <o:p></o:p></p>
<p class="MsoNormal"> labelcmb: {2x2 cell}<o:p></o:p></p>
<p class="MsoNormal"> dimord: 'chan_freq'<o:p></o:p></p>
<p class="MsoNormal"> cohspctrm: [2x101 double]<o:p></o:p></p>
<p class="MsoNormal"> freq: [1x101 double]<o:p></o:p></p>
<p class="MsoNormal"> dof: 500<o:p></o:p></p>
<p class="MsoNormal"> cfg: [1x1 struct]<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">As you can seen, the output of dimord is ‘chan_freq’ so in the subsequent call of
<span style="font-size:10.0pt;font-family:"Courier New";color:black">ft_connectivityplot I get an error message:</span><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:black">cfg = [];</span><span style="font-size:12.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:black">cfg.parameter =
</span><span style="font-size:10.0pt;font-family:"Courier New";color:#A020F0">'cohspctrm'</span><span style="font-size:10.0pt;font-family:"Courier New";color:black">;</span><span style="font-size:12.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:black">ft_connectivityplot(cfg, coh);</span><span style="font-size:12.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">??? Error using ==> ft_connectivityplot at 99<o:p></o:p></p>
<p class="MsoNormal">the data should have a dimord of chan_chan_freq or chancmb_freq<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="font-size:12.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">If I use in </span><span style="font-size:12.0pt;color:black">ft_freqanalysis the cfg.method = ‘powandcsd’,
</span><span style="font-size:12.0pt">cfg.channelcmb seems to have no effect at all,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">the coherence is computed for all possible pairs.</span><span style="font-size:12.0pt"><o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I also don’t understand the difference between “<span style="font-size:12.0pt">cfg.channelcmb” and “cfg.labelcmb”</span><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Can you help me in how I should correctly use the cannelcmb and labelcmb options?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks for your help,<o:p></o:p></p>
<p class="MsoNormal">Thomas<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="font-size:9.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="DE" style="font-size:9.0pt">-----<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="DE" style="font-size:9.0pt">Dr. Thomas Wunderle<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt"><a href="http://www.ncbi.nlm.nih.gov/feed/rss.cgi?ChanKey=PubMedNews"><span lang="DE" style="color:windowtext;text-decoration:none">Ernst Strüngmann Institute (ESI) for Neuroscience</span></a></span><span lang="DE" style="font-family:"Arial","sans-serif""><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt"><a href="http://www.ncbi.nlm.nih.gov/feed/rss.cgi?ChanKey=PubMedNews"><span style="color:windowtext;text-decoration:none">in Cooperation with Max Planck Society
</span></a></span><span style="font-size:9.0pt"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="DE" style="font-size:9.0pt">Deutschordenstrasse 46</span><span lang="DE"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="DE" style="font-size:9.0pt">60528 Frankfurt am Main, Germany</span><span lang="DE"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="DE" style="font-size:9.0pt"><a href="http://www.esi-frankfurt.de/"><span style="color:blue">www.esi-frankfurt.de</span></a></span><span lang="DE"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="DE" style="font-size:9.0pt"><a href="mailto:thomas.wunderle@esi-frankfurt.de"><span style="color:blue">thomas.wunderle@esi-frankfurt.de</span></a></span><span lang="DE"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="DE" style="font-size:9.0pt">Tel: +49 69 96769 519<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="DE" style="font-size:9.0pt">Fax: +49 69 96769 555<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="DE" style="font-size:9.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="DE" style="font-size:10.0pt;color:gray">Sitz der Gesellschaft: Frankfurt am Main<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="DE" style="font-size:10.0pt;color:gray">Registergericht: Amtsgericht Frankfurt - HRB 84266<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="DE" style="font-size:10.0pt;color:gray">Geschäftsführer: Prof. Dr. Pascal Fries<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="DE"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="DE"><o:p> </o:p></span></p>
</div>
</body>
</html>