Question: How to show all combinations of a matrix?

if i restrict value in matrix to 0,1  or 0,1,2 of dimension 2*2 or 3*3

how to show all combination of matrix ?

Please Wait...