SPONES

 

 Replace nonzero entries with ones.

  R = SPONES(S) generates a matrix with the same sparsity

  structure as S, but with ones in the nonzero positions.