Effacer les filtres
Effacer les filtres

How to convert a bit sequence to array?

5 vues (au cours des 30 derniers jours)
Pham Ngoc Thanh
Pham Ngoc Thanh le 23 Août 2013
i have
key = 1234; bit_sequence = dec2bin(key);
how i convert bit_sequence = 10011010010 to A = [1 0 0 1 1 0 1 0 0 1 0]

Réponse acceptée

Azzi Abdelmalek
Azzi Abdelmalek le 23 Août 2013
a='10011010010'
out=a-'0'
  1 commentaire
Pham Ngoc Thanh
Pham Ngoc Thanh le 23 Août 2013
thank you very much it is a great answer!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Image Data Workflows 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!

Translated by