Unstack/delete rows/columns

How can I delete (in a programme) rows in a matrix which has all the elements in the forementioned rows equal to zero?
Furthermore, is it possible to extract the positions (in a matrice) for elements meeting a condition (i.e. my "Position1" checks for each column if there is an element meeting that condition; if it is, it's position becomes the new value ~ element = row no. The end to that is that there are many rows with "zero" as elements and I need to delete them to get a new matrice - i.e. starting with row 36 to the last ~ no change in no of colums assuming in each row there is an element meeting the condition. Should also that not be the case is it possible to further eliminate columns?)
Kind regards, Dumitru
P.S. "Position20" calculates correctly the value for which there are the most lines of non-zero elements. Still I can't seem to subtract the needed matrice ~ "Position22" (incorrect no of rows and columns)...


