all posible combinations of 0 and 1

1 visualizzazione (ultimi 30 giorni)
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?

Risposta accettata

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

Più risposte (0)

Categorie

Scopri di più su Data Type Conversion in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by