function spy(A)

// display not zero entries of a sparse matrix.

[i,j] = find(A);

plot(i,j,'.');

endfunction