Navigation

Operators and Keywords

Function List:

C++ API

: spy (x)
: spy (…, markersize)
: spy (…, line_spec)

Plot the sparsity pattern of the sparse matrix x.

If the argument markersize is given as a scalar value, it is used to determine the point size in the plot.

If the string line_spec is given it is passed to plot and determines the appearance of the plot.

See also: plot, gplot.

Demonstration 1

The following code

 clf;
 spy (sprand (10,10, 0.2));

Produces the following figure

Figure 1

Package: octave