<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="">
Hi Zoltan,
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">Have you checked the values of the numbers in the functional data prior to calling ft_sourceinterpolate? This would give an indication of whether it is an interpolation issue or not.</div>
<div class="">I suspect that latter, because it seems that the interpolation is pulling ‘activity values’ into areas in the volume for which no functional estimate was provided. </div>
<div class="">This could happen if the specification of the ‘inside’ field in the source variable, prior to interpolation, behaves unpredictably.</div>
<div class="">Whether or not this is specific to the Matlab version used, I don’t know. Also, it is unclear what version of fieldtrip you are using.</div>
<div class=""><br class="">
</div>
<div class="">What I can see in your script, though, is that the sourcePost_nocon you use to generate the first ‘correct’ 2 figures is loaded from disk, whereas the other source structure (with the ‘incorrect’ interpolation) is not.</div>
<div class=""><br class="">
</div>
<div class="">Best wishes,</div>
<div class="">Jan-Mathijs</div>
<div class=""><br class="">
<div><br class="">
<blockquote type="cite" class="">
<div class="">On 25 Feb 2020, at 13:46, Zoltan Juhasz <<a href="mailto:z65.juhasz@gmail.com" class="">z65.juhasz@gmail.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="ltr" class="">
<div class="">I have recently run into a problem while executing the Beamformer Fieldtrip demo at
<a href="http://www.fieldtriptoolbox.org/tutorial/beamformer/" target="_blank" class="">
http://www.fieldtriptoolbox.org/tutorial/beamformer/</a> <br class="">
</div>
<div class=""><br class="">
</div>
<div class="">I am using the sample data set and the source code from this page but the picture I get for the section "Source Analysis: Contrast activity to another interval" is rather strange. I include here the 3 outputs, first two are correct, third one
 is the problematic one. Also included is the source. Matlab version used: R2019a. Could someone check whether it is a script error or perhaps a change in Matlab that generates the odd result?
</div>
<div class=""><br class="">
</div>
<div class="">links to figures and source: <br class="">
</div>
<div class=""><a href="https://drive.google.com/drive/folders/1XPZd5l3og1WAEt8dK6Bx7a9W8xgSzCMF?usp=sharing" class="">https://drive.google.com/drive/folders/1XPZd5l3og1WAEt8dK6Bx7a9W8xgSzCMF?usp=sharing</a></div>
<div class=""><br class="">
</div>
<div class="">Thanks,</div>
<div class="">Zoltan</div>
<div class="">University of Pannonia, Hungary<br class="">
</div>
</div>
_______________________________________________<br class="">
fieldtrip mailing list<br class="">
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" class="">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br class="">
https://doi.org/10.1371/journal.pcbi.1002202<br class="">
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>