How to convert a bit sequence to array?

4 Ansichten (letzte 30 Tage)
Pham Ngoc Thanh
Pham Ngoc Thanh am 23 Aug. 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]

Akzeptierte Antwort

Azzi Abdelmalek
Azzi Abdelmalek am 23 Aug. 2013
a='10011010010'
out=a-'0'

Weitere Antworten (0)

Kategorien

Mehr zu Communications Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by