Navigation

Operators and Keywords

Function List:

C++ API

: r = spones (S)

Replace the nonzero entries of S with ones.

This creates a sparse matrix with the same structure as S.

See also: sparse, sprand, sprandn, sprandsym, spfun, spy.

Package: octave