I work with random matrices made of 0 and 1. Once generated, I want to remove the columns that contains only zero’s. I can easily identify these columns (as a list), and I can remove one column at a time. How to do it in one operation ? Here is how the nb starts:
m = 100; n = 10
A = RandomInteger[1, {m, n}]
Position [A, Table[0, n]]
…
An alternative would be to exclude from the start columns with only zero’s.
Thanks for suggestions. Pierre Dehez, University of Louvain, Louvain-la-Neuve

