Is there a command for/how to convert a binary number to binary vector?
古いコメントを表示
Hi,
I got a binary number and i want to convert it to a binary vector like;
a=101010101010101010 to [1 0 1 0 1 0 1 0 ....]
2 件のコメント
Oleg Komarov
2012 年 8 月 3 日
what class is a?
Use
whos a
採用された回答
その他の回答 (1 件)
Azzi Abdelmalek
2012 年 8 月 3 日
b=num2str(a);c=b(:);
result=str2num(c)'
カテゴリ
ヘルプ センター および File Exchange で Data Type Conversion についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!