there are two 8 bit binary values in a single variable...how can i concate these two values???
Show older comments
a='asd';
b=double(a);
c=dec2bin(b,8);
d=length(c);
i need to get d as 24 how can i get?
1 Comment
hemalatha
on 17 Dec 2014
Accepted Answer
More Answers (2)
Guillaume
on 17 Dec 2014
Andrei Bobrov
on 17 Dec 2014
Edited: Andrei Bobrov
on 17 Dec 2014
on comment by Hemalatha
a='asd';
b=double(a);
c=dec2bin(b,8).';
out = c(:)';
1 Comment
hemalatha
on 17 Dec 2014
Categories
Find more on Logical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!