<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Dear Michelle,
<div class=""><br class="">
</div>
<div class="">Given the lack of responses so far, it seems that no one has encountered your issue before. </div>
<div class=""><br class="">
</div>
<div class="">Yet, I was wondering whether this is not a user error indeed. The help of ft_volumelookup mentions that it should work on a ‘volume’ structure as input. You mention that you use (of course :) ) a warped grid, which is probably not what you want,
 for 2 reasons:</div>
<div class=""><br class="">
</div>
<div class="">1) the atlas should be in the same coordinate space as the object that is used in ft_volumelookup, using something warped sounds as if this is expressed in a possibly ill-defined space. In your pasted code, you explicitly specify sourcemodel.coordsys
 as ‘mni’, but is this truly the case?</div>
<div class="">2) the geometric info in a sourcemodel structure is defined by a set of dipole positions in 3D (i.e. a Nx3 matrix), rather than by a 3-element dim-field, which combined with a transform-field implicitly define the positions in the volume.</div>
<div class=""><br class="">
</div>
<div class="">Somehow, FT gives you the benefit of the doubt, and manages to convert the source(model) representation into a volume representation. It’s still surprising that the downstream effects of this depend on the matlab version + device.</div>
<div class="">Also, it might be informative to the readership of the list, to what extent the different matlab versions return different numbers of grid points. Have you inspected this in more detail?</div>
<div class=""><br class="">
</div>
<div class="">Best wishes,</div>
<div class="">Jan-Mathijs</div>
<div class=""><br class="">
</div>
<div class="">
<div><br class="">
<blockquote type="cite" class="">
<div class="">On 27 Oct 2021, at 13:44, Michelle via fieldtrip <<a href="mailto:fieldtrip@science.ru.nl" class="">fieldtrip@science.ru.nl</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div id="divtagdefaultwrapper" dir="ltr" style="font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif;" class="">
<p style="margin-top: 0px; margin-bottom: 0px;" class=""></p>
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><span lang="EN-GB" class="">Dear Fieldtrip community,<o:p class=""></o:p></span></div>
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><span lang="EN-GB" class=""><br class="">
</span></div>
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><span lang="EN-GB" class="">I was wondering if you could help me with a problem occurring using the function ft_volumelookup. Depending on the computer I use, I get a different number of selected grid
 points. I use the same script (see scrip below) and the same FieldTrip Version (20210825), the only difference is that I used different MATLAB Versions on the different devices: MATLAB 2020b, MATLAB 2019b, MATLAB 2018a. But even when I used the same MATLAB
 Version (2019b) on different devices I received different results.<o:p class=""></o:p></span></div>
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><span lang="EN-GB" class=""><br class="">
</span></div>
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><span lang="EN-GB" class="">Has someone ever encountered a similar problem, or do I have some kind of error in my code (of course I always load the same warped grid I calculated from an MRI)?<o:p class=""></o:p></span></div>
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><span lang="EN-GB" class=""><br class="">
</span></div>
<span id="cid:1de601e4-fed3-476f-98a2-0626a792baa9"><pastedImage.png></span><br class="">
<p style="margin-top: 0px; margin-bottom: 0px;" class=""></p>
<div style="margin-top: 0px; margin-bottom: 0px;" class="">Thank you in advanced.</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class="">
</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class="">Best wishes, </div>
<div style="margin-top: 0px; margin-bottom: 0px;" class="">Michelle</div>
</div>
<span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">_______________________________________________</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">
<span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">fieldtrip
 mailing list</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">
<a href="https://urldefense.com/v3/__https://doi.org/10.1371/journal.pcbi.1002202__;!!HJOPV4FYYWzcc1jazlU!vfCCM0D-bJncXMU16CeN-dBPTUkeJ01aGEhRydNhgWOnhLRWmLU8SA9MtxQwxVqdZBI_wexPFML2Rhs$" style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">https://urldefense.com/v3/__https://doi.org/10.1371/journal.pcbi.1002202__;!!HJOPV4FYYWzcc1jazlU!vfCCM0D-bJncXMU16CeN-dBPTUkeJ01aGEhRydNhgWOnhLRWmLU8SA9MtxQwxVqdZBI_wexPFML2Rhs$</a><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class=""></span></div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>