<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p style="margin-top:0;margin-bottom:0">Dear experts,</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">There is probably a very simple explanation for this glitch but I've been unable to figure it out.
<br>
</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">I've been having a problem with ft_topoplotTRF in which, if I try to only plot a subset of channels, the data is stretched across the whole glass brain (see figure). I've got around this by just plotting all channels
in the past but I'm following the multivariate tutorial and despite using the exact code and data on there I'm still getting the same issue. Is this a bug? Getting it on a couple of recently installed versions of fieldtrip.
<br>
</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">If I try using the cfg.channel option for the ft_topoplotTRF I get the following error, which I can't understand as ft_channelselection is called fine earlier in the code. </p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0"></p>
<div>
<p class="MsoNormal">Undefined function or variable "labelmlo".</p>
<p class="MsoNormal">Error in ft_channelselection (line 438)</p>
<p class="MsoNormal">if findmlo,<span style="mso-spacerun:yes"> </span>channel = [channel; labelmlo]; end</p>
<p class="MsoNormal"><br>
</p>
<p class="MsoNormal">I present the full code below for info. <br>
</p>
<p class="MsoNormal"><br>
</p>
<p class="MsoNormal">Thank you in advance. <br>
</p>
<p class="MsoNormal"><br>
</p>
<p class="MsoNormal">Jac</p>
<p class="MsoNormal"><br>
</p>
<p class="MsoNormal"><br>
</p>
<p class="MsoNormal"></p>
<div>cfg = [];<br>
cfg.output = 'pow';<br>
cfg.method = 'mtmconvol';<br>
cfg.taper = 'hanning';<br>
cfg.foi = 8:2:14;<br>
cfg.t_ftimwin = ones(length(cfg.foi),1).*0.5;<br>
cfg.channel =<span>{'MLO' 'MRO'}</span>;<br>
cfg.toi = 2.0:0.1:2.5;<br>
cfg.keeptrials = 'yes'; % classifiers operate on individual trials<br>
<br>
tfrleft = ft_freqanalysis(cfg, left);<br>
tfrright = ft_freqanalysis(cfg, right);<br>
<br>
cfg = [];<br>
cfg.layout = 'CTF275.lay';<br>
cfg.method = 'crossvalidate';<br>
cfg.design = [ones(size(tfrleft.powspctrm,1),1); 2*ones(size(tfrright.powspctrm,1),1)]';<br>
stat = ft_freqstatistics(cfg,tfrleft,tfrright);<br>
<br>
stat.statistic<br>
<br>
stat.mymodel = stat.model{1}.primal;<br>
<br>
cfg = [];<br>
cfg.layout = 'CTF275.lay';<br>
cfg.parameter = 'mymodel';<br>
cfg.comment = '';<br>
%cfg.channel = {'MLO' 'MRO'};<br>
cfg.colorbar = 'yes';<br>
cfg.interplimits = 'electrodes';<br>
ft_topoplotTFR(cfg, stat);<br>
<br>
<br>
</div>
<br>
<p></p>
</div>
<br>
<p></p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<div id="Signature">
<div id="divtagdefaultwrapper" dir="ltr" style="font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-family: Calibri,Arial,Helvetica,sans-serif,"EmojiFont","Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols;">
<div class="BodyFragment"><font size="2">
<div class="PlainText">
<p class="MsoNormal"><i><span style="color:#7F7F7F"></span></i></p>
<i>
<p class="MsoNormal"><i><span style="color:#7F7F7F">Dr Jac Billington</span></i></p>
<p class="MsoNormal"><i><span style="color:#7F7F7F">Lecturer in Cognitive Neuroscience</span></i></p>
<p class="MsoNormal"><i><span style="color:#7F7F7F">School of Psychology, Rm G.06A</span></i></p>
<p class="MsoNormal"><i><span style="color:#7F7F7F">University of Leeds</span></i></p>
<p class="MsoNormal"><i><span style="color:#7F7F7F">Leeds, LS2 9JT</span></i></p>
<p class="MsoNormal"><i><span style="color:#7F7F7F">Tel: +44(0)113 343 6686</span></i></p>
<p class="MsoNormal"><i><span style="color:#7F7F7F"> </span></i><i style="color:rgb(0,0,0)"><span style="color:#7F7F7F"> </span></i></p>
</i>
<p></p>
<p class="MsoNormal"><i><span style="color:#7F7F7F"><a href="http://medhealth.leeds.ac.uk/profile/1300/983/jac_billington" id="LPNoLP">Jac Billington</a></span></i></p>
<p class="MsoNormal"><i><span style="color:#7F7F7F"><a href="http://www.leeds.ac.uk/coni/index.html" id="LPNoLP">CoNi Lab</a></span></i></p>
<br>
</div>
</font></div>
</div>
</div>
</div>
</body>
</html>