MATLAB: All posible combinations of 0 and 1

combinations

HI guys, I just need help getting the 16 different combinations 0 and 1 can take. Ex. 0 0 0 1 0 0 1 0 0 1 0 0 . . . anyone please can help me?

Best Answer

dec2bin(0:15,4)-'0'