<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><p 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></p>
<p 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></p>
<p 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></p>
<p 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></p>
<p 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></p>
<p 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></p>
<p 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></p>
<p 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></p>
<p 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></p>
<p 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></p>
<p 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></p>
<p 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></p>
<p 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></p><p 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></p><p 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></p><p 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></p><p 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></p><p 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></p>
<p 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></p></div><div style="color:rgb(34,34,34);font-size:13px">
<br></div></span></div>