MATLAB Function Reference | ![]() ![]() |
Syntax
spy(S) spy(S,markersize
) spy(S,
'LineSpec
') spy(S,
'LineSpec
',markersize
)
Description
spy(S)
plots the sparsity pattern of any matrix S
.
spy(S,marksize),
where markersize
is an integer, plots the sparsity pattern using markers of the specified point size.
spy(S,'
where LineSpec
'),
LineSpec
is a string, uses the specified plot marker type and color.
spy(S,'
uses the specified type, color, and size for the plot markers.LineSpec
',markersize)
S
is usually a sparse matrix, but full matrices are acceptable, in which case the locations of the nonzero elements are plotted.
spy
replaces format
+
, which takes much more space to display essentially the same information.
See Also
find
, gplot
, LineSpec
, symamd
, symmmd
, symrcm
![]() | sprintf | sqrt | ![]() |