Next: , Previous: spmin, Up: Function Reference


22.6.0.37 spones

— Function File: y = spones (x)

Replace the non-zero entries of x with ones. This creates a sparse matrix with the same structure as x.