is there a simple command to do this:
M = 0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1
i found this http://www.mathworks.co.kr/matlabcentral/fileexchange/7147-combn--4-3- but this isn't yet a thing in matlab
tried M = combn([0 1],3)
bo i got Undefined function 'combn' for input arguments of type 'double'. in return