full

sparse to full matrix conversion

Calling Sequence

X=full(sp)

Arguments

:sp real or complex sparse (or full) matrix : :X full matrix :

Description

X=full(sp) converts the sparse matrix sp into its full representation. (If sp is already full then X equals sp).

Examples

sp=`sparse`_([1,2;5,4;3,1],[1,2,3]);
A=full(sp)

See Also

  • sparse sparse matrix definition
  • sprand sparse random matrix
  • speye sparse identity matrix

Table Of Contents

This Page