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!