How to find the indices of nonzero rows in a matrix?
Example:
A = [ 14 0 6 9 8 17 85 14 1 3 0 99 0 0 0 0 0 0
Here's one that ab(uses) the fast matrix multiplication in MATLAB -
idx = find(abs(A)*ones(size(A,2),1))