Info
此问题已关闭。 请重新打开它进行编辑或回答。
Adjacency matrix .I have adjacency matrix . I want to convert it into generalise matlab code .
1 次查看(过去 30 天)
显示 更早的评论
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]
G=graph(A)
plot(G)
1 个评论
Walter Roberson
2023-8-13
How does this differ from https://www.mathworks.com/matlabcentral/answers/2007927-adjacency-matrix-i-want-to-simply-the-code ?
回答(0 个)
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!