✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.

Sparse Matrix Visualizations in MATLAB®

How to visualize sparse matrices in MATLAB®. An example of the spy function.

% Learn about API authentication here: https://plotly.com/matlab/getting-started
% Find your api_key here: https://plotly.com/settings/api

fig = figure;

B = bucky;


% Strip MATLAB<sup>&reg;</sup> style by default!

response = fig2plotly(fig, 'filename', 'matlab-spy-chart');
plotly_url = response.url;

MATLAB is a registered trademark of The MathWorks, Inc.