|MATLAB Function Reference|
Sparse uniformly distributed random matrix
R = sprand(S)
has the same sparsity structure as
S, but uniformly distributed random entries.
R = sprand(m,n,density)
is a random,
n, sparse matrix with approximately
density*m*n uniformly distributed nonzero entries
R = sprand(m,n,density,rc)
also has reciprocal condition number approximately equal to
R is constructed from a sum of matrices of rank one.
rc is a vector of length
lr <= min(m,n), then
rc as its first
lr singular values, all others are zero. In this case,
R is generated by random plane rotations applied to a diagonal matrix with the given singular values. It has a great deal of topological and algebraic structure.