<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Karl,<div><br></div><div>Just check the original paper: the bandwidth is a required parameter for the thing to be computed in the first place, because the metric is computed by integrating over a specified frequency band. You as a user should specify it; and even more so, the value is up to you ;-).</div><div><br></div><div>JM</div><div><br><div><div>On Jun 26, 2012, at 7:36 PM, Karl Doron wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse:collapse;color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px">Hello,</span><div><font class="Apple-style-span" color="#222222" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse:collapse"><br>
</span></font></div><div><font class="Apple-style-span" color="#222222" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse:collapse">Apologies for the double email. I sent the previous one without finishing.<br>
</span></font><span class="Apple-style-span" style="border-collapse:collapse;font-family:arial,sans-serif"><div style="color:rgb(34,34,34);font-size:13px"><br></div><div style="color:rgb(34,34,34);font-size:13px">I'm trying to use ft_connectivityanalysis with the phase slope index method. There is an error in ft_connectivityanalysis because the field "bandwidth" is missing. I don't find the bandwidth field to be output in any of the ft_freqanalysis functions. Is it simply the foi/some smoothing amount? </div>
<div style="color:rgb(34,34,34);font-size:13px"><br></div><div style="font-size:13px"><div style="color:rgb(34,34,34)"><i>cfg                     = [];</i></div><div style="color:rgb(34,34,34)"><i>cfg.method         = 'psi';</i></div>
<div style="color:rgb(34,34,34)"><i>psi                     = ft_connectivityanalysis(cfg, freq);</i></div><div style="color:rgb(34,34,34)"><i><br></i></div><div style="color:rgb(34,34,34)"><i>selection fourierspctrm along dimension 2</i></div>
<div style="color:rgb(34,34,34)"><i>averaging crsspctrm over rpt</i></div><div style="color:rgb(34,34,34)"><i>removing dimension rpt from crsspctrm</i></div><div><font class="Apple-style-span" color="#ff0000"><i>Reference to non-existent field 'bandwidth'.</i></font></div>
<div><font class="Apple-style-span" color="#ff0000"><i><br></i></font></div><div><font class="Apple-style-span" color="#ff0000"><i>Error in ft_connectivityanalysis (line 719)</i></font></div><div><font class="Apple-style-span" color="#ff0000"><i>    nbin   = nearest(data.freq, data.freq(1)+cfg.bandwidth)-1;</i></font></div>
</div><div style="color:rgb(34,34,34);font-size:13px"><i><br></i></div><div style="color:rgb(34,34,34);font-size:13px"><i><br></i></div><div style="color:rgb(34,34,34);font-size:13px"><i>freq was computed with the following:</i></div>
<div style="color:rgb(34,34,34);font-size:13px"><i><br></i></div><div><div style="color: rgb(34, 34, 34); margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Courier; "><font class="Apple-style-span"><i>cfg            = [];</i></font></div><div style="color: rgb(34, 34, 34); margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Courier; "><font class="Apple-style-span"><i>cfg.channel    = chans; <span style="color:#2c9834">%{'MEG', '-A41','-A71'};</span></i></font></div><div style="color: rgb(34, 34, 34); margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Courier; "><font class="Apple-style-span"><i>cfg.channelcmb = chancmb;</i></font></div><div style="color: rgb(34, 34, 34); margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Courier; "><font class="Apple-style-span"><i>cfg.method     = <span style="color:#b04ef0">'mtmconvol'</span>;</i></font></div><div style="color: rgb(34, 34, 34); margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Courier; "><font class="Apple-style-span"><i>cfg.output     = <span style="color:#b04ef0">'fourier'</span>;</i></font></div><div style="color: rgb(34, 34, 34); margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Courier; "><font class="Apple-style-span"><i>cfg.keeptrials = <span style="color:#b04ef0">'yes'</span>;</i></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Courier; "><font class="Apple-style-span"><i><font class="Apple-style-span" color="#222222">cfg.foi        = band(1):band(2); </font><font class="Apple-style-span" color="#33cc00">%8:12Hz</font></i></font></div><div style="color: rgb(34, 34, 34); margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Courier; "><font class="Apple-style-span"><i>cfg.toi        = 1.8:0.01:3.0;</i></font></div><div style="color: rgb(34, 34, 34); margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Courier; "><font class="Apple-style-span"><i>cfg.t_ftimwin  = 5./cfg.foi;</i></font></div><div style="color: rgb(34, 34, 34); margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Courier; "><font class="Apple-style-span"><i>cfg.taper      = <span style="color:#b04ef0">'hanning'</span>;</i></font></div><div style="color: rgb(34, 34, 34); margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Courier; min-height: 12px; "><font class="Apple-style-span"><i> </i></font></div><div style="color: rgb(34, 34, 34); margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Courier; "><font class="Apple-style-span"><i>freq           = ft_freqanalysis(cfg, data);</i></font></div><div style="color: rgb(34, 34, 34); margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Courier; "><font class="Apple-style-span"><i><br></i></font></div><div style="color: rgb(34, 34, 34); margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Courier; ">
<font class="Apple-style-span"><i><br></i></font></div><div style="color: rgb(34, 34, 34); margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Courier; "><font class="Apple-style-span"><i><br>
</i></font></div><div style="color: rgb(34, 34, 34); margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Courier; "><font class="Apple-style-span">Thanks you,</font></div><div style="color: rgb(34, 34, 34); margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Courier; ">
<font class="Apple-style-span"><br></font></div><div style="color: rgb(34, 34, 34); margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Courier; "><font class="Apple-style-span">Karl Doron, phd</font></div><div style="color: rgb(34, 34, 34); margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Courier; "><font class="Apple-style-span">UC, Santa Barbara</font></div></div><div style="color:rgb(34,34,34);font-size:13px">
<br></div></span></div>
_______________________________________________<br>fieldtrip mailing list<br><a href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a><br>http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</blockquote></div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Jan-Mathijs Schoffelen, MD PhD </div><div><br></div><div>Donders Institute for Brain, Cognition and Behaviour, <br>Centre for Cognitive Neuroimaging,<br>Radboud University Nijmegen, The Netherlands</div><div><br></div><div>Max Planck Institute for Psycholinguistics,</div><div>Nijmegen, The Netherlands</div><div><br></div><div><a href="mailto:J.Schoffelen@donders.ru.nl">J.Schoffelen@donders.ru.nl</a></div><div>Telephone: +31-24-3614793</div></div></span></div></span></div></span></div></span></div></span></span>
</div>
<br></div></body></html>