how to get the indices of non zero elements in a matrix in matlab