MATLAB: There are two 8 bit binary values in a single variable…how can i concate these two values??

help me quickly

a='asd';
b=double(a);
c=dec2bin(b,8);
d=length(c);
i need to get d as 24 how can i get?

Best Answer

Hi,
concatenate them using reshape:
reshape(c', 1, numel(c))
Titus