Main Content
sprand
Sparse uniformly distributed random matrix
Description
creates a
sparse matrix that has the same sparsity pattern as the matrix R
= sprand(S
)S
, but
with uniformly distributed random entries.
Examples
Input Arguments
Limitations
sprand
is designed to produce large matrices with small density and will generate significantly fewer nonzero values than requested ifm*n
is small ordensity
is large.