Possible to come out with a adjacency matrix?
2 次查看(过去 30 天)
显示 更早的评论
k = 1:30;
[B,V] = bucky;
axis square
subplot(1,1,1);
subplot(1,1,1);
gplot(B(1:30,1:30),V(1:30,:),'b-');
for j = 1:30,
text(V(j,1),V(j,2),int2str(j),'FontSize',10);
end
axis equal
figure(2);
spy(B);
since spy(B) shows the non zero elements, is it possible to generate adjacency matrix?
0 个评论
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Line Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!