i have
key = 1234; bit_sequence = dec2bin(key);
how i convert bit_sequence = 10011010010 to A = [1 0 0 1 1 0 1 0 0 1 0]

 採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2013 年 8 月 23 日

1 投票

a='10011010010'
out=a-'0'

1 件のコメント

Pham Ngoc Thanh
Pham Ngoc Thanh 2013 年 8 月 23 日
thank you very much it is a great answer!

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

その他の回答 (0 件)

カテゴリ

Community Treasure Hunt

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

Start Hunting!

Translated by