spones
sparse matrix
Syntax
sp=spones(A)
Arguments
- A
 sparse matrix
- sp
 sparse matrix
Description
sp=spones(A) generates a matrix with the same
            sparsity structure as A, but with ones in the nonzero
            positions.
See also
| Report an issue | ||
| << speye | Sparse Matrix Manipulation | sprand >> |