Sparse Matrix Creation

Random and nonrandom sparse matrices


spalloc Allocate space for sparse matrix
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 from sparse matrix external format
Was this topic helpful?