Parsing Bits
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hello,
I have say 4 binary sequences arranged in a matrix where the first row contains the first sequence and the second row contains the second sequence and so on. Now I need to take the bits in each column to form a new 16-QAM symbol. How can I do that?
Thanks
0 commentaires
Réponses (1)
Walter Roberson
le 30 Avr 2012
idx = 1 + M(:,1)*8 + M(:,2)*4 + M(:,3)*2 + M(:,4);
Now use idx to index into an array of output symbols.
0 commentaires
Voir également
Catégories
En savoir plus sur String Parsing dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!