Mapping two binary bits to one
古いコメントを表示
I have generate a set of bits 0 and 1,
N=10000;
m=(sign(randn(1,N))+1)/2;
The problem is how do I group the bits? For example
00=-j
01=-1
10=1
11=j
1 件のコメント
Image Analyst
2019 年 12 月 1 日
No idea what you want, but look at dec2bin() and/or bin2dec().
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Numbers and Precision についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!