ispy

Version 1.1.0.0 (2.66 KB) by Samu
Visualize sparsity pattern and the size of the elements of a matrix.
274 Downloads
Updated 21 Aug 2013

View License

ISPY(S) extends the functionality of the native MATLAB function SPY by plotting the sparsity pattern of the matrix S and visualizing the size and sign of its elements. Positive elements are plotted in red and negative elements in blue. Zero elements are not plotted. The size of an element is scaled logarithmically.

The imaginary part of any number is discarded. NaNs are plotted as red stars on a yellow background. Infs are plotted as blue stars on a green background. If the matrix is very big, try zooming in to get a more accurate view.

For example, try typing "ispy(gallery('wathen',4,4))" to get the picture shown in the screenshot.

More info and examples available by typing "help ispy".

Joint work by Samu Alanko and Patrick N. Raanes.

Cite As

Samu (2024). ispy (https://www.mathworks.com/matlabcentral/fileexchange/43154-ispy), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2013a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Discrete Data Plots in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.1.0.0

Fixed typos.

1.0.0.0