retrieves entries of sparse matrix
[ij,v,mn]=spget(sp)
real, complex or boolean sparse matrix
two columns integer matrix (indices of non-zeros or true entries)
integer vector with two entries (row-dimension, column-dimension)
column vector
spget
is used to convert the internal representation of sparse
matrices into the standard ij, v
representation.
Non zero entries (or entries set to true for a boolean sparse matrix) of sp
are located in rows and columns
with indices in ij
.
sp=sparse([1,2;4,5;3,10],[1,2,3]) [ij,v,mn]=spget(sp); | ![]() | ![]() |