MATLAB Answers

0

Why did this error occur? How can you solve this?

Asked by Enkhzaya Ganbold on 1 Jul 2019
Latest activity Commented on by Walter Roberson
on 1 Jul 2019
please, Look at the picture.

  6 Comments

figure;
G=graph(A_ave_THOLD);
p=plot(G);
title('Weighted Brain Network','FontSize',16);
p.LineWidth=G.Edges.Weight;
p.NodeLabel={'Fp1','F3','C3','P3','O1','Fp2','F4','C4','P4','O2','F7','T3','T5','F8','T4','T6','Fz','Cz','Pz'};
p.NodeFontSize=10;
p.NodeColor='black';
p.MarkerSize=7;
p.XData=[-1 -1 -1 -1 -1 1 1 1 1 1 -2.5 -2.5 -2.5 2.5 2.5 2.5 0 0 0];
p.YData=[2.5 1 0 -1 -2.5 2.5 1 0 -1 -2.5 1 0 -1 1 0 -1 1 0 -1];
다음 사용 중 오류가 발생함: graph (line 269)
인접 행렬은 대칭 행렬이어야 합니다. 또는 옵션 'upper' 또는 'lower'를 사용하여 입력 행렬의 일부를 무시하십시오.
Your A_ave_THOLD is not a symmetric matrix.
Is it possible that it is a matrix with two columns with the first column intended to be the source node and the second intended to be the destination?

Sign in to comment.

Tags

0 Answers