Import from sparse matrix external format
S = spconvert(
constructs
sparse matrix D
)S
from the columns of D
in
a manner similar to the sparse
function.
If D
is of size N
-by-3
,
then spconvert
uses the columns [i,j,re]
of D
to
construct S
, such that S(i(k), j(k)) =
re(k)
.
If D
is of size N
-by-4
,
then spconvert
uses the columns [i,j,re,im]
of D
to
construct S
, such that S(i(k), j(k)) =
re(k) + 1i*im(k)
.