% Get the adjacency list and convert it to a Matlab sparse matrix ADJ = spconvert([in0 ones(180,1)]) % Get the XYZ coordinates of carbon atoms in the C60 molecule XYZ = in1 % We'll draw the two "halves" of the molecule separately % (and in different colors). The sparse matrix hADJ % corresponds to one half of the molecule. hADJ = sparse(60,60); n = 31:60; hADJ(n,n) = ADJ(n,n); % We'll construct the plot using two calls to Matlab's gplot % function - each call drawing one half of the molecule. gplot(hADJ,XYZ,'m-'); axis('equal','off') title('Rotating Buckyball') hold on gplot(ADJ-hADJ,XYZ,'c-'); hold off