<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Dear Jose,
<div class="">As far as I know, this code is not functional. The first author of the paper started the implementation in fieldtrip-style, but never finished it.</div>
<div class="">Also, note that the method itself is not strictly speaking a ‘connectivity’ measure, but it was intended to identify rhythmicity within signals.</div>
<div class=""><br class="">
</div>
<div class="">Best wishes,</div>
<div class="">Jan Mathijs</div>
<div class=""><br class="">
</div>
<div class="">
<div class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
J.M.Schoffelen, MD PhD<br class="">
Associate PI, VIDI-fellow<br class="">
Telephone: +31-24-3614793</div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Physical location: room 00.028</div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Donders Centre for Cognitive Neuroimaging, Nijmegen, The Netherlands<br class="">
<br class="">
<br class="">
</div>
</div>
</div>
</div>
</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
<div>
<blockquote type="cite" class="">
<div class="">On 16 May 2018, at 18:17, Jose Herrero <<a href="mailto:jose.herrero66@gmail.com" class="">jose.herrero66@gmail.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="ltr" class="">
<div class=""><font face="times new roman, serif" class="">dear Fieldtrippers,</font></div>
<div class=""><font face="times new roman, serif" class=""><br class="">
</font></div>
<div class=""><font face="times new roman, serif" class="">I'm comparing different coherence methods including the fieldtrip method of lagged coherence. </font></div>
<div class=""><font face="times new roman, serif" class=""><br class="">
</font></div>
<div class=""><font face="times new roman, serif" class="">running the code with...</font></div>
<div class=""><font face="times new roman, serif" class=""><span class=""></span></font>
<div style="margin: 0px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-position: normal; font-weight: normal; font-stretch: normal; line-height: normal;" class="">
<font color="#ff0000" face="times new roman, serif" class="">cfg.method<span class="gmail-Apple-converted-space">
</span>= <span class="gmail-s1">'laggedcoherence'</span>;</font></div>
<font color="#ff0000" face="times new roman, serif" class=""><span class=""></span></font>
<p class="gmail-p1" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:normal">
</p>
<div style="margin: 0px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-position: normal; font-weight: normal; font-stretch: normal; line-height: normal;" class="">
<font color="#ff0000" face="times new roman, serif" class="">lcoh = ft_connectivityanalysis(cfg, freq)</font></div>
<div style="margin: 0px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-position: normal; font-weight: normal; font-stretch: normal; line-height: normal;" class="">
<font face="times new roman, serif" class="">results on...<br class="">
</font></div>
<div style="margin: 0px; font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; line-height: normal;" class="">
<font color="#ff0000" face="times new roman, serif" class="">Error using ft_connectivityanalysis (line 375)</font></div>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal">
<font color="#ff0000" face="times new roman, serif" class=""></font></p>
<div style="margin: 0px; font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; line-height: normal;" class="">
<font color="#ff0000" face="times new roman, serif" class="">unknown method laggedcoherence</font></div>
</div>
<div class=""><span style="color:rgb(34,34,34);font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline" class=""><font face="times new roman, serif" class=""><br class="">
</font></span></div>
<div class=""><font face="times new roman, serif" class=""><span style="color:rgb(34,34,34);font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline" class="">running
the code with...</span><br class="">
</font></div>
<div class=""><font face="times new roman, serif" class=""><span class=""></span></font>
<div style="margin: 0px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-position: normal; font-weight: normal; font-stretch: normal; line-height: normal;" class="">
<font color="#ff0000" face="times new roman, serif" class="">lcoh = ft_connectivity_laggedcoherence(cfg, freq)</font></div>
<div style="margin: 0px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-position: normal; font-weight: normal; font-stretch: normal; line-height: normal; min-height: 14px;" class="">
<font face="times new roman, serif" class="">results on: <br class="">
</font></div>
</div>
<div class="">
<div class=""><font color="#ff0000" face="times new roman, serif" class="">In an assignment A(:) = B, the number of elements in A and B must be the same.</font></div>
<div class=""><font face="times new roman, serif" class=""><span style="color:rgb(255,0,0)" class="">Error in ft_connectivity_laggedcoherence (line 213)</span><br class="">
</font></div>
<div class=""><font color="#ff0000" face="times new roman, serif" class=""> lagwidth(lagindx) = cfg.lag*cyclelength*lagindx;</font></div>
</div>
<div class=""><font face="times new roman, serif" class="">as 'cfg.lag' is assigned a length equal to the length of the trial (1x15000, single trial).</font></div>
<div class=""><font face="times new roman, serif" class=""><br class="">
</font></div>
<div class=""><font face="times new roman, serif" class="">if this method works, is it possible to use it to compute lagged coherence between an external signal (which oscillates at a freq <0.5Hz) and the iEEG brain signal?</font></div>
<div class=""><font face="times new roman, serif" class=""><br class="">
</font></div>
<div class=""><font face="times new roman, serif" class="">thanks,</font></div>
<div class=""><font face="times new roman, serif" class="">JHerr</font></div>
<div class=""><br class="">
</div>
<div class=""> </div>
</div>
_______________________________________________<br class="">
fieldtrip mailing list<br class="">
<a href="mailto:fieldtrip@donders.ru.nl" class="">fieldtrip@donders.ru.nl</a><br class="">
https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</div>
</blockquote>
</div>
<br class="">
</div>
<br class="">
<br class="">
<div class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<br class="">
</div>
</div>
</div>
</div>
</body>
</html>