How to convert a bit sequence to array?

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]

 채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2013년 8월 23일

1 개 추천

a='10011010010'
out=a-'0'

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Communications Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by