필터 지우기
필터 지우기

Possible to come out with a adjacency matrix?

조회 수: 1 (최근 30일)
jy tan
jy tan 2012년 3월 6일
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?

답변 (1개)

Laurens Bakker
Laurens Bakker 2012년 3월 7일
B is the an adjacency matrix.
  댓글 수: 1
jy tan
jy tan 2012년 3월 7일
when i type B, i didn't get 60x60 adj matrix
[ 0 0 0 0 0 1 1 1 1 1 ...
....
...]

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Data Distribution Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by