<div dir="auto">Dear Sophie,<div dir="auto">Thanks fort the update. I'll try again shortly with the latest version of fieldtrip. Will let you know about the outcome.</div><div dir="auto">Zoltan</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 4 Mar 2020, 13:44 Arana, S.L. (Sophie), <<a href="mailto:S.Arana@donders.ru.nl">S.Arana@donders.ru.nl</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div dir="ltr" style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<p>​​​Dear Zoltan,<br>
</p>
<p><br>
</p>
<p>I have indeed recently updated the beamformer tutorial. I just ran it with Matlab 2019a and the most recent Fieldtrip version (available on Github) and the figures look fine to me.<br>
</p>
<p>Could you update your Fieldtrip version and try again?<br>
</p>
<p><br>
</p>
<p>Best,<br>
</p>
<p>Sophie<br>
</p>
<div style="color:rgb(33,33,33)">
<hr style="display:inline-block;width:98%">
<div id="m_8112483377117167741divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> fieldtrip <<a href="mailto:fieldtrip-bounces@science.ru.nl" target="_blank" rel="noreferrer">fieldtrip-bounces@science.ru.nl</a>> on behalf of Zoltan Juhasz <<a href="mailto:z65.juhasz@gmail.com" target="_blank" rel="noreferrer">z65.juhasz@gmail.com</a>><br>
<b>Sent:</b> Wednesday, March 4, 2020 11:38 AM<br>
<b>To:</b> FieldTrip discussion list<br>
<b>Subject:</b> Re: [FieldTrip] Problem with Beamformer demo</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div>Hi Jan-Mathijs,</div>
<div><br>
</div>
<div>Thanks for getting back to me. I noticed that the documentation page has changed since my first email, so I created a new script and ran this again. This time no data is loaded from disk during computation, I am using what is produced by the script. The
 result is very disappointing, all figures are wrong. I have uploaded the script, the execution log and the output figures. Could you please check what could be wrong here?
<br>
</div>
<div><br>
</div>
<div>The link to the files is the same as before: <a href="https://drive.google.com/drive/folders/1XPZd5l3og1WAEt8dK6Bx7a9W8xgSzCMF?usp=sharing" target="_blank" rel="noreferrer">
https://drive.google.com/drive/folders/1XPZd5l3og1WAEt8dK6Bx7a9W8xgSzCMF?usp=sharing</a>
<br>
</div>
<div>Matlab version: r2019a</div>
<div>Fieldtrip version: 20190121</div>
<div><br>
</div>
<div>Thanks,</div>
<div>Zoltan<br>
</div>
<div><br>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Thu, Feb 27, 2020 at 10:00 AM Schoffelen, J.M. (Jan Mathijs) <<a href="mailto:jan.schoffelen@donders.ru.nl" target="_blank" rel="noreferrer">jan.schoffelen@donders.ru.nl</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>Hi Zoltan,
<div><br>
</div>
<div><br>
</div>
<div>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>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>This could happen if the specification of the ‘inside’ field in the source variable, prior to interpolation, behaves unpredictably.</div>
<div>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><br>
</div>
<div>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><br>
</div>
<div>Best wishes,</div>
<div>Jan-Mathijs</div>
<div><br>
<div><br>
<blockquote type="cite">
<div>On 25 Feb 2020, at 13:46, Zoltan Juhasz <<a href="mailto:z65.juhasz@gmail.com" target="_blank" rel="noreferrer">z65.juhasz@gmail.com</a>> wrote:</div>
<br>
<div>
<div dir="ltr">
<div>I have recently run into a problem while executing the Beamformer Fieldtrip demo at
<a href="http://www.fieldtriptoolbox.org/tutorial/beamformer/" target="_blank" rel="noreferrer">http://www.fieldtriptoolbox.org/tutorial/beamformer/</a>
<br>
</div>
<div><br>
</div>
<div>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><br>
</div>
<div>links to figures and source: <br>
</div>
<div><a href="https://drive.google.com/drive/folders/1XPZd5l3og1WAEt8dK6Bx7a9W8xgSzCMF?usp=sharing" target="_blank" rel="noreferrer">https://drive.google.com/drive/folders/1XPZd5l3og1WAEt8dK6Bx7a9W8xgSzCMF?usp=sharing</a></div>
<div><br>
</div>
<div>Thanks,</div>
<div>Zoltan</div>
<div>University of Pannonia, Hungary<br>
</div>
</div>
_______________________________________________<br>
fieldtrip mailing list<br>
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" target="_blank" rel="noreferrer">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br>
<a href="https://doi.org/10.1371/journal.pcbi.1002202" target="_blank" rel="noreferrer">https://doi.org/10.1371/journal.pcbi.1002202</a><br>
</div>
</blockquote>
</div>
<br>
</div>
</div>
_______________________________________________<br>
fieldtrip mailing list<br>
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" rel="noreferrer noreferrer" target="_blank">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br>
<a href="https://doi.org/10.1371/journal.pcbi.1002202" rel="noreferrer noreferrer" target="_blank">https://doi.org/10.1371/journal.pcbi.1002202</a><br>
</blockquote>
</div>
</div>
</div>
</div>

_______________________________________________<br>
fieldtrip mailing list<br>
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" rel="noreferrer noreferrer" target="_blank">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br>
<a href="https://doi.org/10.1371/journal.pcbi.1002202" rel="noreferrer noreferrer" target="_blank">https://doi.org/10.1371/journal.pcbi.1002202</a><br>
</blockquote></div>