<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hi Mads,<div>you’re not alone! </div><div>In fact I was going to open a bug on that these days, since I’m getting similar (non) results.</div><div><br></div><div>With a previous ft version (6499, so more than one year old), everything seems to work fine, i.e. I get (for a Vectorview 306 channel input)</div><div>as a ft_combineplanar output:</div><div><br></div><div><div>avgdatacmbOLD = </div><div><br></div><div> time: [1x1537 double]</div><div> label: {204x1 cell}</div><div> grad: [1x1 struct]</div><div> cfg: [1x1 struct]</div><div> fsample: 256</div><div> sampleinfo: [1 1537]</div><div> avg: [204x1537 double]</div><div> dimord: 'chan_time'</div></div><div><br></div><div>so, correctly combined, whereas if I do the same with a recent (svn-ed) version, with the same input, I get:</div><div><br></div><div><div>avgdatacmb = </div><div><br></div><div> time: [1x1537 double]</div><div> label: {306x1 cell}</div><div> grad: [1x1 struct]</div><div> cfg: [1x1 struct]</div><div> fsample: 256</div><div> sampleinfo: [1 1537]</div><div> avg: [306x1537 double]</div><div> dimord: ‘chan_time'</div></div><div><br></div><div>so I get back my original, non combined, 306 channels …</div><div><br></div><div>I tried to track the problem before opening a bug, and it seems that the problem lays in my input data label, which is:</div><div><br></div><div><div>>> avgdata.label</div><div><br></div><div>ans = </div><div><br></div><div> 'MEG0113'</div><div> 'MEG0112'</div><div> 'MEG0111'</div><div> </div></div><div><br></div><div>etc …</div><div><br></div><div>The problem seems to be around lines 102-ff of ft_combineplanar, since ft_senstype(data) on my data wrongly returns ‘neuromag306’ ( that are in principle ‘MEG 0113’ etc ...) instead of ‘neuromag306alt’ ( ‘MEG0113’ without spaces), and then in the following two lines sel_dH/sel_dV are empty, since there’s never a match between my data label (‘MEG0113’ …) and the output of ft_senstype/ft_senslabel (‘MEG 0113’ … with spaces).</div><div>So, there’s something wrong in the ft_senstype step, but I didn’t have time to fully track it …</div><div>@roboos: am I missing something obvious, or should I file a bug!?</div><div><br></div><div>My two €-cents,</div><div>Gianpaolo</div><div><br></div><div><br><div><div>Il giorno 03/gen/2014, alle ore 11:44, Mads Jensen <<a href="mailto:mje.mads@gmail.com">mje.mads@gmail.com</a>> ha scritto:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi all,<br><br>I have a problem with ft_combineplanar. It does not seem to combine the <br>planar gradiometors when called.<br><br>I have tried with timelocked data and epoched data, both are the same. <br>However, grandaveraged data (ft_timelockgrandaverage) create a structure <br>with combined data. Does anybody have an idea what the problem might be <br>or how I can find the problem?<br><br>I have Neuromag Triux data and is using the most recent Fieldtrip from <br>the git-repo.<br><br>best wish,<br>mads<br>_______________________________________________<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<br></blockquote></div><br><div apple-content-edited="true">
<div style="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-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="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-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="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-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><pre class="moz-signature" cols="72"><br></pre></div><br class="Apple-interchange-newline"></div><br class="Apple-interchange-newline"></div><br class="Apple-interchange-newline"><br class="Apple-interchange-newline">
</div>
<br></div></body></html>