Suppose we have two numbers [-1 1] and want to combine them in all combinations inside a matrix which has 6 columns . How can I compute all these 64 combinations of these numbers such that a result is a matrix of 64x6 dimension?
To make my question more clear, ending result would look something like this:
A = [-1 1 -1 1 -1 1; 1 -1 1 1 -1 -1 1; -1 1 -1 -1 1 -1; 1 -1 -1 1 -1 -1; etc.]
with all 64 possible combinations. Since there are 64 combinations, a resulting matrix would have 64 rows and 6 columns since every row (vector) has 6 numbers.