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!