sparse matrix
sp=spones(A)
:A sparse matrix : :sp sparse matrix :
sp=spones(A) generates a matrix with the same sparsity structure as A, but with ones in the nonzero positions.
A=`sprand`_(10,12,0.1); sp=spones(A) B = A~=0 `bool2s`_(B)
Enter search terms or a module, class or function name.