<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">---------- Forwarded message ---------<br>From: <strong class="gmail_sendername" dir="auto">Christina Vanden Bosch der Nederlanden</strong> <span dir="auto"><<a href="mailto:christinavb@gmail.com">christinavb@gmail.com</a>></span><br>Date: Fri, May 21, 2021 at 3:46 PM<br>Subject: Poor Interpolation in ft_topoplotER?<br>To:  <<a href="mailto:fieldtrip-request@science.ru.nl">fieldtrip-request@science.ru.nl</a>><br></div><br><br><div dir="ltr">Dear FT, <div><br></div><div>I am trying to create a grand average topoplot for all my (infant) subjects's EGI sensor net phase coherence data. Code is below:</div><div><br></div><div>





<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:10px;line-height:normal;font-family:Helvetica">cfg = [];</p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:10px;line-height:normal;font-family:Helvetica">cfg.parameter = <span style="color:rgb(160,32,240)">'cohspctrm'</span>;</p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:10px;line-height:normal;font-family:Helvetica">cfg.appenddim = <span style="color:rgb(160,32,240)">'rpt'</span>;</p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:10px;line-height:normal;font-family:Helvetica;color:rgb(34,139,34)"><span style="color:rgb(0,0,0)">cfg.channelcmb = cohall{1}.labelcmb %this is 128 x 2 list of 128 electrodes and 'Stimulus' pair</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:10px;line-height:normal;font-family:Helvetica">cohcomb = ft_appendfreq(cfg, cohall{:});</p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:10px;line-height:normal;font-family:Helvetica;min-height:12px"><span> </span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:10px;line-height:normal;font-family:Helvetica;min-height:12px"><span> </span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:10px;line-height:normal;font-family:Helvetica">cfg=[];</p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:10px;line-height:normal;font-family:Helvetica">cfg.avgoverrpt=<span style="color:rgb(160,32,240)">'yes'</span>;</p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:10px;line-height:normal;font-family:Helvetica">cfg.frequency = [3 9];</p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:10px;line-height:normal;font-family:Helvetica">avgcoh=ft_selectdata(cfg,cohcomb);</p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:10px;line-height:normal;font-family:Helvetica;color:rgb(34,139,34)"><span style="color:rgb(0,0,0)">avgcoh = rmfield(avgcoh,</span><span style="color:rgb(160,32,240)">'cfg'</span><span style="color:rgb(0,0,0)">); </span>%just to make plotting faster, take out all the old cfgs</p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:10px;line-height:normal;font-family:Helvetica">cfg=[];</p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:10px;line-height:normal;font-family:Helvetica;color:rgb(160,32,240)"><span style="color:rgb(0,0,0)">cfg.layout=</span>'GSN-HydroCel-128.sfp'<span style="color:rgb(0,0,0)">;</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:10px;line-height:normal;font-family:Helvetica">cfg.colorbar = <span style="color:rgb(160,32,240)">'yes'</span>;</p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:10px;line-height:normal;font-family:Helvetica">cfg.parameter = <span style="color:rgb(160,32,240)">'cohspctrm'</span>;</p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:10px;line-height:normal;font-family:Helvetica">cfg.refchannel = <span style="color:rgb(160,32,240)">'Stimulus'</span>;</p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:10px;line-height:normal;font-family:Helvetica">figure;ft_topoplotER(cfg,avgcoh);</p><p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal"><font face="arial, sans-serif"><br></font></p><p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal"><font face="arial, sans-serif">This works, of course, but my average topoplot looks like below, with greatest coherence for areas where there are no electrodes consistently across participants. Is there something I can do to change the interpolation so FT doesn't include guesses about these missing electrodes?</font></p><p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:10px;line-height:normal;font-family:Helvetica"><br></p><p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:10px;line-height:normal;font-family:Helvetica"></p><img src="cid:ii_koyqfguv0" alt="Screen Shot 2021-05-21 at 3.44.54 PM.png" width="531" height="466"><p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:10px;line-height:normal;font-family:Helvetica"><br></p><p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal;font-family:Helvetica">Thank you!</p><p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal;font-family:Helvetica"><br></p><p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal;font-family:Helvetica">Christina</p><div><br></div>-- <br><div dir="ltr" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>Christina M. Vanden Bosch der Nederlanden</div><div>Postdoctoral Fellow</div><div>Brain and Mind Institute</div><div>Western University<br><a href="mailto:christinavb@gmail.com" target="_blank">christinavb@gmail.com</a></div><div><span style="font-size:12.8px">Website: </span><a href="https://sites.google.com/view/christinavbdn" style="font-size:12.8px" target="_blank">https://sites.google.com/view/christinavbdn</a><br></div></div></div></div></div></div></div></div></div><div hspace="streak-pt-mark" style="max-height:1px"><img alt="" style="width:0px;max-height:0px;overflow:hidden" src="https://mailfoogae.appspot.com/t?sender=aY2hyaXN0aW5hdmJAZ21haWwuY29t&type=zerocontent&guid=4b129037-b6d8-43f2-85d7-4ba7cff2fe43"><font color="#ffffff" size="1">ᐧ</font></div>
</div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>Christina M. Vanden Bosch der Nederlanden</div><div>Postdoctoral Fellow</div><div>Brain and Mind Institute</div><div>Western University<br><a href="mailto:christinavb@gmail.com" target="_blank">christinavb@gmail.com</a></div><div><span style="font-size:12.8px">Website: </span><a href="https://sites.google.com/view/christinavbdn" style="font-size:12.8px" target="_blank">https://sites.google.com/view/christinavbdn</a><br></div></div></div></div></div></div></div></div><div hspace="streak-pt-mark" style="max-height:1px"><img alt="" style="width:0px;max-height:0px;overflow:hidden" src="https://mailfoogae.appspot.com/t?sender=aY2hyaXN0aW5hdmJAZ21haWwuY29t&type=zerocontent&guid=571bf7b8-bb00-4993-ada8-47439ceae295"><font color="#ffffff" size="1">ᐧ</font></div>