Sparse Adjacency Matrix in MATLAB®

How to make Sparse Adjacency Matrixes in MATLAB® with Plotly.


Plot Sparsity Pattern

Plot the 60-by-60 sparse adjacency matrix of the connectivity graph of the Buckminster Fuller geodesic dome. This matrix also represents the carbon-60 molecule and a soccer ball.

B = bucky;
spy(B)

fig2plotly()

plot00plotsparsity_pattern

Specify the color and marker.

spy(B,'ro')

fig2plotly()

plot01plotsparsity_pattern

Also specify the marker size.

spy(B,'ro',2)

fig2plotly()

plot02plotsparsity_pattern