You can get non-zero indexes of a sparse matrix using find(sparseMatrix), 
then you can iterate over them.

Reply via email to