I want to split a char array '1001' into 1 0 0 1 bits

1 回表示 (過去 30 日間)
Javadkhan Gurbanov
Javadkhan Gurbanov 2020 年 10 月 15 日
コメント済み: madhan ravi 2020 年 10 月 15 日
How do I split '1001' - char array, into 4 separate bits?
  1 件のコメント
madhan ravi
madhan ravi 2020 年 10 月 15 日
Why did you ask the same question twice?

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

回答 (1 件)

Matt J
Matt J 2020 年 10 月 15 日
編集済み: Matt J 2020 年 10 月 15 日
One way:
'1001' - '0'
ans = 1×4
1 0 0 1

カテゴリ

Help Center および File ExchangeData Types についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by