Clear Filters
Clear Filters

all posible combinations of 0 and 1

2 views (last 30 days)
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?

Accepted Answer

Walter Roberson
Walter Roberson on 1 Nov 2018
dec2bin(0:15,4)-'0'

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!