How to convert a bit sequence to array?

1 次查看(过去 30 天)
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
a='10011010010'
out=a-'0'

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Logical 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by