Sparse Adjacency Matrix in MATLAB®

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


Plotly Studio: Transform any dataset into an interactive data application in minutes with AI. Try Plotly Studio now.

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(gcf);

Specify Color and Marker

B = bucky;
spy(B,'green')

fig2plotly(gcf);

Specify Marker Size

B = bucky;
spy(B,'red',2)

fig2plotly(gcf);