The data is given by:
q = Flatten[
Table[{a, b, c, d}, {a, 0, 1}, {b, 0, 1}, {c, 0, 1}, {d, 0, 1}], 3].
Mathematica gives the following order:
{{0, 0, 0, 0}, {0, 0, 0, 1}, {0, 0, 1, 0}, {0, 0, 1, 1}, {0, 1, 0,
0}, {0, 1, 0, 1}, {0, 1, 1, 0}, {0, 1, 1, 1}, {1, 0, 0, 0}, {1, 0,
0, 1}, {1, 0, 1, 0}, {1, 0, 1, 1}, {1, 1, 0, 0}, {1, 1, 0, 1}, {1,
1, 1, 0}, {1, 1, 1, 1}};
I would like the data to be ordered as below (i.e. the order should be, 2nd, 4th, 6th,8th, 10th, etc):
newdata4 = {{0, 0, 0, 1}, {0, 0, 1, 1}, {0, 1, 0, 1}, {0, 1, 1,
1}, {1, 0, 0, 1}, {1, 0, 1, 1}, {1, 1, 0, 1}, {1, 1, 1, 1}, {0, 0,
0, 0}, {0, 0, 1, 0}, {0, 1, 0, 0}, {0, 1, 1, 0}, {1, 0, 0,
0}, {1, 0, 1, 0}, {1, 1, 0, 0}, {1, 1, 1, 0}};
Can anyone help me? Im fact I would like to use a much larger combination of binaries and the documentation does not help!