[FieldTrip] Sign flip in lcmv spatial filter with different versions of MATLAB

Bushra Riaz Syeda bushra.riaz at gu.se
Wed Sep 1 13:25:58 CEST 2021


Hello,

I am having a strange error. I calculated lcmv beamformer for my  Neuromag dataset couple of years ago. I ran some beamformer based analysis and now I thought I will redo some part of the analysis.
I noticed during the rerun of my scripts that the spatial filter calculated for 3 subjects ( out of 20) has a sign flip for 3-5 % of the vertices. After investigating for a week, I found that I get sign flip for these vertices when I run the same script with MATLAB 2013b and MATLAB 2017a ( fieldtrip version was same for both runs).

I have attached the figure for one of the vertex of spatial filter with both MATLAB versions.

Now my question is, as this sign flip is affecting my further analysis, I would like to know , how to figure out which one is correct and if anyone has any idea where the error could be coming from.
Thank you
Any help would be highly appreciated.

Kind regards
Bushra Riaz

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20210901/edeac266/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SpatialFiletrVertex.jpg
Type: image/jpeg
Size: 68246 bytes
Desc: SpatialFiletrVertex.jpg
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20210901/edeac266/attachment.jpg>


More information about the fieldtrip mailing list