<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Hi Ainsley,
<div class=""><br class="">
</div>
<div class="">I forward your message to the discussion list.</div>
<div class=""><br class="">
</div>
<div class="">Dear list,</div>
<div class=""><br class="">
</div>
<div class="">Please have a look at Ainsley’s question below. Did anyone encounter this issue and has a solution? The error is a low-level MATLAB one, so apparently the input arguments to the ismember function call are not what they should be.</div>
<div class=""><br class="">
</div>
<div class="">Thanks and with best wishes,</div>
<div class=""><br class="">
</div>
<div class="">Jan-Mathijs</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
<br class="">
<div class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
J.M.Schoffelen, MD PhD<br class="">
Senior Researcher, VIDI-fellow - PI, language in interaction<br class="">
Telephone: +31-24-3614793</div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Physical location: room 00.028</div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Donders Centre for Cognitive Neuroimaging, Nijmegen, The Netherlands<br class="">
<br class="">
<br class="">
</div>
</div>
</div>
</div>
</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
<div><br class="">
<blockquote type="cite" class="">
<div class="">Begin forwarded message:</div>
<br class="Apple-interchange-newline">
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class="">
<span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(0, 0, 0, 1.0);" class=""><b class="">From:
</b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">Ainsley Temudo <<a href="mailto:ainsley.temudo@nyu.edu" class="">ainsley.temudo@nyu.edu</a>><br class="">
</span></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class="">
<span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(0, 0, 0, 1.0);" class=""><b class="">Subject:
</b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class=""><b class="">ft_volumerealign with headshape</b><br class="">
</span></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class="">
<span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(0, 0, 0, 1.0);" class=""><b class="">Date:
</b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">13 March 2017 at 07:30:23 GMT+1<br class="">
</span></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class="">
<span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(0, 0, 0, 1.0);" class=""><b class="">To:
</b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class=""><<a href="mailto:jan.schoffelen@donders.ru.nl" class="">jan.schoffelen@donders.ru.nl</a>><br class="">
</span></div>
<br class="">
<div class="">
<div dir="ltr" class="">Hi Jan-Mathijs,
<div class=""><br class="">
</div>
<div class="">I'm trying to realign an MRI to a headshape. I found a previous discussion mail from someone who had a similar problem a couple of years ago and you replied saying you fixed it locally with a dirty hack.   </div>
<div class=""><br class="">
</div>
<div class=""><a href="https://mailman.science.ru.nl/pipermail/fieldtrip/2015-November/009828.html" class="">https://mailman.science.ru.nl/pipermail/fieldtrip/2015-November/009828.html</a></div>
<div class=""><br class="">
</div>
<div class="">I am doing it the same way:</div>
<div class=""><br class="">
</div>
<div class="">
<div style="margin: 0px; font-size: 10px; line-height: normal; font-family: courier; color: rgb(178, 69, 243);" class="">
<span style="" class="">mri = ft_read_mri(</span>'WMCP1011+22+t1mprage.nii'<span style="" class="">);</span></div>
<div style="margin: 0px; font-size: 10px; line-height: normal; font-family: courier;" class="">
cfg = [];</div>
<div style="margin: 0px; font-size: 10px; line-height: normal; font-family: courier;" class="">
cfg.method = <span style="color:rgb(178,69,243)" class="">'interactive'</span>;</div>
<div style="margin: 0px; font-size: 10px; line-height: normal; font-family: courier;" class="">
cfg.coordsys = <span style="color:rgb(178,69,243)" class="">'ctf'</span>;</div>
<div style="margin: 0px; font-size: 10px; line-height: normal; font-family: courier;" class="">
mri_realigned = ft_volumerealign(cfg,mri);</div>
<p style="margin:0px;font-size:10px;line-height:normal;font-family:courier;min-height:12px" class="">
 <br class="webkit-block-placeholder">
</p>
<div style="margin: 0px; font-size: 10px; line-height: normal; font-family: courier;" class="">
hs=ft_read_headshape(<span style="color:rgb(178,69,243)" class="">'headscan.hsp'</span>);</div>
<div style="margin: 0px; font-size: 10px; line-height: normal; font-family: courier;" class="">
<br class="">
</div>
<div style="margin: 0px; font-size: 10px; line-height: normal; font-family: courier;" class="">
cfg = [];</div>
<div style="margin: 0px; font-size: 10px; line-height: normal; font-family: courier;" class="">
cfg.method = <span style="color:rgb(178,69,243)" class="">'headshape'</span></div>
<div style="margin: 0px; font-size: 10px; line-height: normal; font-family: courier;" class="">
<font class="">cfg.coordsys = </font><font color="#ff00ff" class="">'ctf'</font><font class="">;</font></div>
<div style="margin: 0px; font-size: 10px; line-height: normal; font-family: courier;" class="">
cfg.headshape.headshape = hs;</div>
<div style="margin: 0px; font-size: 10px; line-height: normal; font-family: courier;" class="">
mri_realigned2 = ft_volumerealign(cfg,mri_realigned);</div>
</div>
<div class=""><br class="">
</div>
<div class=""> and I get the following errors :</div>
<div class=""><br class="">
</div>
<div class="">
<div class="">doing interactive realignment with headshape</div>
<div class="">Error using cell/ismember (line 34)</div>
<div class="">Input A of class cell and input B of class cell must be cell arrays of</div>
<div class="">strings, unless one is a string.</div>
<div class=""><br class="">
</div>
<div class="">Error in ft_senstype (line 303)</div>
<div class="">    if     (mean(ismember(ft_senslabel('ant128'),         sens.label)) > 0.8)</div>
<div class=""><br class="">
</div>
<div class="">Error in ft_datatype_sens (line 138)</div>
<div class="">ismeg = ft_senstype(sens, 'meg');</div>
<div class=""><br class="">
</div>
<div class="">Error in ft_checkconfig (line 250)</div>
<div class="">  cfg.elec = ft_datatype_sens(cfg.elec);</div>
<div class=""><br class="">
</div>
<div class="">Error in ft_interactiverealign (line 71)</div>
<div class="">cfg.template   = ft_checkconfig(cfg.template, 'renamed', {'vol',</div>
<div class="">'headmodel'});</div>
<div class=""><br class="">
</div>
<div class="">Error in ft_volumerealign (line 691)</div>
<div class="">      tmpcfg = ft_interactiverealign(tmp cfg);</div>
<div class=""><br class="">
</div>
<div class="">Is it the same issue as before?  if this issue was fixed, any idea why I'm getting these areas? I'm using field trip version 20160313</div>
<div class=""><br class="">
</div>
<div class="">Kind Regards,</div>
<div class="">Ainsley </div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
<br class="">
</body>
</html>