Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Adjacency matrix .I have adjacency matrix . I want to convert it into generalise matlab code .

조회 수: 1 (최근 30일)
mks
mks 2023년 8월 13일
마감: John D'Errico 2023년 9월 9일
A=[0,1,1,0,0,0,0,0,1,1;1,0,1,1,0,0,0,0,0,1;1,1,0,1,1,0,0,0,0,0;0,1,1,0,1,1,0,0,0,0;0,0,1,1,0,1,1,0,0,0;0,0,0,1,1,0,1,1,0,0;0,0,0,0,1,1,0,1,1,0;
0,0,0,0,0,1,1,0,1,1;1,0,0,0,0,0,1,1,0,1;1,1,0,0,0,0,0,1,1,0]
A = 10×10
0 1 1 0 0 0 0 0 1 1 1 0 1 1 0 0 0 0 0 1 1 1 0 1 1 0 0 0 0 0 0 1 1 0 1 1 0 0 0 0 0 0 1 1 0 1 1 0 0 0 0 0 0 1 1 0 1 1 0 0 0 0 0 0 1 1 0 1 1 0 0 0 0 0 0 1 1 0 1 1 1 0 0 0 0 0 1 1 0 1 1 1 0 0 0 0 0 1 1 0
G=graph(A)
G =
graph with properties: Edges: [20×2 table] Nodes: [10×0 table]
plot(G)

답변 (0개)

이 질문은 마감되었습니다.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by