Borrar filtros
Borrar filtros

Possible to come out with a adjacency matrix?

1 visualización (últimos 30 días)
jy tan
jy tan el 6 de Mzo. de 2012
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?

Respuestas (1)

Laurens Bakker
Laurens Bakker el 7 de Mzo. de 2012
B is the an adjacency matrix.
  1 comentario
jy tan
jy tan el 7 de Mzo. de 2012
when i type B, i didn't get 60x60 adj matrix
[ 0 0 0 0 0 1 1 1 1 1 ...
....
...]

Iniciar sesión para comentar.

Categorías

Más información sobre Data Distribution Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by