spconvert
Import from sparse matrix external format
Syntax
Description
S = spconvert(
constructs sparse matrixD
)S
from the columns ofD
in a manner similar to thesparse
function.
If
D
is of sizeN
-by-3
, thenspconvert
uses the columns[i,j,re]
ofD
to constructS
, such thatS(i(k), j(k)) = re(k)
.If
D
is of sizeN
-by-4
, thenspconvert
uses the columns[i,j,re,im]
ofD
to constructS
, such thatS(i(k), j(k)) = re(k) + 1i*im(k)
.