convert binary vector value into decimal
이전 댓글 표시
i have
a= [0 0 1 0 1 0 1 1]
i want to convert it, into decimal value 43
답변 (3개)
Mischa Kim
2014년 2월 26일
Raza, use
bin2dec(num2str(a))
Azzi Abdelmalek
2014년 2월 26일
편집: Azzi Abdelmalek
2014년 2월 26일
a= [0 0 1 0 1 0 1 1];
b=bin2dec(sprintf('%d',a))
Andrei Bobrov
2014년 2월 26일
polyval(a,2)
카테고리
도움말 센터 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!