How I can convert a binary number into Matrix
13 ビュー (過去 30 日間)
古いコメントを表示
I have 100110101010
I want 10
01
10
10
10
10
採用された回答
yanqi liu
2021 年 12 月 21 日
a = logical([1 0 0 1 1 0 1 0 1 0 1 0])
b = [a(1:2:end)' a(2:2:end)']
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!