help > RE: Difficulty displaying edges
Jun 24, 2019  01:06 AM | Mingrui Xia
RE: Difficulty displaying edges
Hi Winnie, 

It seems that the dimension of the matrix doesn't match with your node files. You may attach your files and I will have a check. 

Best,
Mingrui
Originally posted by Winnie Orchard:
Hi there :) 

I have a 82x82 matrix and the BrainNetViewer correctly displays the significant nodes, but I am having trouble displaying edges. 
It throws this error message: 

Subscript indices must either be real positive integers or logicals.

Error in BrainNet>DrawLine (line 3724)
set(Line,'FaceColor',EC.edg.CM(surf.cylinder(i,5),:));
Error in BrainNet>PlotLine8 (line 3076)
DrawLine(surf,j,5,1);
Error in BrainNet>FileView (line 3923)
PlotLine8(surf,a,flag,centerX);
Error in BrainNet>NV_m_nm_Callback (line 385)
a=FileView;
Error in gui_mainfcn (line 95)
feval(varargin{:});
Error in BrainNet (line 53)
gui_mainfcn(gui_State, varargin{:});
Error in BrainNet_MapCfg (line 529)
BrainNet('NV_m_nm_Callback',H_BrainNet);
Error in Func_y_Figs (line 34)
BrainNet_MapCfg(surface_data_location,'nodes.node','connections.edge','ASPREE_BrainNetViewer_options.mat','NBS_RESULTS.png');

Any help would be greatly appreciated!
Thanks in advance 
Winnie

Threaded View

TitleAuthorDate
Winnie Orchard Jun 13, 2019
RE: Difficulty displaying edges
Mingrui Xia Jun 24, 2019