MATLAB: How to convert a bit sequence to array

binary bit sequence

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]

Best Answer

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