<< spring | Graphics functions | stairs >> |
spy(S) |
spy(S, LineSpec) |
spy(S, LineSpec, MarkerSize) |
matrix: sparse or dense.
Line style, marker, and/or color: character vector or scalar string.
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 |
Allan CORNET