Mapping two binary bits to one
Afficher commentaires plus anciens
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 commentaire
Image Analyst
le 1 Déc 2019
No idea what you want, but look at dec2bin() and/or bin2dec().
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Numbers and Precision dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!