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?

1 件のコメント

Andres Serrano
Andres Serrano 2018 年 11 月 1 日
I mean 0001---0010---0100.... thanks again!

サインインしてコメントする。

 採用された回答

Walter Roberson
Walter Roberson 2018 年 11 月 1 日

2 投票

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

1 件のコメント

Andres Serrano
Andres Serrano 2018 年 11 月 1 日
Thanks Walter, you are a live saver!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by