spy(S)
spy(S, LineSpec)
spy(S, LineSpec, MarkerSize)
| Parameter | Description |
|---|---|
| S | matrix: sparse or dense. |
| LineSpec | Line style, marker, and/or color: character vector or scalar string. |
| MarkerSize | positive integer scalar value. |
spy(S) plots the sparsity pattern of the sparse matrix S.
f = figure();
rng('default');
S = sparse((rand(1, 10) + 1) * 100, (rand(1, 10) + 1) * 100 , (rand(1, 10) + 1) * 10);
spy(S);
f = figure();
rng('default');
S = sparse((rand(1, 10) + 1) * 100, (rand(1, 10) + 1) * 100 , (rand(1, 10) + 1) * 100);
spy(S, 45);
f = figure();
spy();
| Version | Description |
|---|---|
| 1.0.0 | initial version |