Let A
be a sparse matrix in coordinate format [row(int) col(int) val(float)]
. If a upper triangular sparse matrix of A
is needed, then the same can be obtained using logical indexing like:
A = A(A(:,1) <= A(:,2), :);
If A is cell array [{row(int)} {col(int)} {val(string)}]
, how do I perform the same logical indexing as above in this case?