MATLAB: How to concatenate these matrices where the below matrices are formed out of permutation

combination of sharing matrices

i =
1
1
0
0
i =
1
1
0
0
i =
0
1
1
0
i =
1
1
0
0
i =
0
0
1
1
i =
0
0
1
1

Best Answer

Why not use this:
i_matrix=perms([0 0 1 1]);
Otherwise, just put it in a matrix inside your loop.
Related Question