15.11.2014 Views

MATLAB Mathematics - SERC - Index of

MATLAB Mathematics - SERC - Index of

MATLAB Mathematics - SERC - Index of

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

6 Sparse Matrices<br />

Function Summary<br />

The sparse matrix functions are located in the <strong>MATLAB</strong> sparfun directory.<br />

Function Summary<br />

Category Function Description<br />

Elementary sparse<br />

matrices<br />

Full to sparse<br />

conversion<br />

Working with<br />

sparse matrices<br />

speye<br />

sprand<br />

sprandn<br />

sprandsym<br />

spdiags<br />

sparse<br />

full<br />

find<br />

spconvert<br />

nnz<br />

nonzeros<br />

nzmax<br />

spones<br />

spalloc<br />

issparse<br />

spfun<br />

spy<br />

Sparse identity matrix.<br />

Sparse uniformly distributed random matrix.<br />

Sparse normally distributed random matrix.<br />

Sparse random symmetric matrix.<br />

Sparse matrix formed from diagonals.<br />

Create sparse matrix.<br />

Convert sparse matrix to full matrix.<br />

Find indices <strong>of</strong> nonzero elements.<br />

Import from sparse matrix external format.<br />

Number <strong>of</strong> nonzero matrix elements.<br />

Nonzero matrix elements.<br />

Amount <strong>of</strong> storage allocated for nonzero matrix elements.<br />

Replace nonzero sparse matrix elements with ones.<br />

Allocate space for sparse matrix.<br />

True for sparse matrix.<br />

Apply function to nonzero matrix elements.<br />

Visualize sparsity pattern.<br />

6-2

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!