Plot nodes and links representing adjacency matrix
The gplot function graphs a set of coordinates using an adjacency matrix.
gplot(A,Coordinates) plots a graph of the nodes defined in Coordinates according to the n-by-n adjacency matrix A, where n is the number of nodes. Coordinates is an n-by-2 matrix, where n is the number of nodes and each coordinate pair represents one node.
Plot half of a "Bucky ball" carbon molecule, placing asterisks at each node:
k = 1:30; [B,XY] = bucky; gplot(B(k,k),XY(k,:),'-*') axis square