Is there a command for/how to convert a binary number to binary vector?
显示 更早的评论
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 个评论
Oleg Komarov
2012-8-3
what class is a?
Use
whos a
采纳的回答
更多回答(1 个)
Azzi Abdelmalek
2012-8-3
b=num2str(a);c=b(:);
result=str2num(c)'
类别
在 帮助中心 和 File Exchange 中查找有关 Data Type Conversion 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!