Is there a command for/how to convert a binary number to binary vector?
Show older comments
Hi,
I got a binary number and i want to convert it to a binary vector like;
a=101010101010101010 to [1 0 1 0 1 0 1 0 ....]
2 Comments
Oleg Komarov
on 3 Aug 2012
what class is a?
Use
whos a
Accepted Answer
More Answers (1)
Azzi Abdelmalek
on 3 Aug 2012
b=num2str(a);c=b(:);
result=str2num(c)'
Categories
Find more on Data Type Conversion 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!