obtain row and column indices of non-zero matrix elements
8 views (last 30 days)
Show older comments
Is there a more efficient way of obtaining the row and column indices of the nonzero elements of a matrix than using the ind2sub and find functions? [I,J] = ind2sub(size(A),find(A));
Accepted Answer
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!