Problem with Display as Graph [NxN] Granger Full Matrix

Hello Brainstorm Developers,

I am experiencing the following problem when I am trying to display a Full Granger Causality Matrix as Graph:

6 Connectivity measure loaded
Unrecognized function or variable 'Arrows'.

Error in figure_connect>BuildLinks (line 1557)
setappdata(hFig, 'RegionArrows', Arrows);

Error in figure_connect>SetRegionFunction (line 2865)
BuildLinks(hFig, RegionDataPair, false); %Note: make sure to use IsMeasureLink = false for this step

Error in figure_connect>LoadFigurePlot (line 1371)
SetRegionFunction(hFig, getappdata(hFig, 'DefaultRegionFunction'));

Error in figure_connect (line 29)
eval(macro_method);

Error in view_connect (line 280)
figure_connect('LoadFigurePlot', hFig);

Error in tree_callbacks>@(h,ev)view_connect(filenameRelative,'GraphFull') (line 1887)
gui_component('MenuItem', jPopup, [], 'Display as graph [NxN]', IconLoader.ICON_CONNECTN, [],
@(h,ev)view_connect(filenameRelative, 'GraphFull'));

Am I doing something wrong? Is there a problem with the matrix I am trying to plot? If this can help, I am using MATLAB 2021a.

All my best,
Margherita

Hi Margherita,

After debugging I located the bug in the function to plot the graph.
Your connectivity matrix it's ok, and you should be able to display it as image without any trouble

I'll write you back once the bug in the connectivity graph is fixed.

I've just posted the fix for this issue: https://github.com/brainstorm-tools/brainstorm3/commit/e6f540fade527e6fc0576de1ca9f97baa93e59e9

Please update Brainstorm and try again.

@Raymundo.Cassani Thank you so much for your help! Now it works perfectly.