Main Content
spconvert
Import from sparse matrix external format
Syntax
Description
S = spconvert(
constructs
sparse matrix D
)S
from the columns of D
in
a manner similar to the sparse
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)
.
Examples
Input Arguments
Extended Capabilities
Version History
Introduced before R2006a