フィルターのクリア

How to convert a bit sequence to array?

5 ビュー (過去 30 日間)
Pham Ngoc Thanh
Pham Ngoc Thanh 2013 年 8 月 23 日
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 日
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 件)

カテゴリ

Help Center および File ExchangeImage Data Workflows についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by