Sparse Matrix Creation

Random and nonrandom sparse matrices


spdiags Extract and create sparse band and diagonal matrices
speye Sparse identity matrix
sprand Sparse uniformly distributed random matrix
sprandn Sparse normally distributed random matrix
sprandsym Sparse symmetric random matrix
sparse Create sparse matrix
spconvert Import matrix from sparse matrix external format
Was this topic helpful?