convert binary vector value into decimal
조회 수: 15 (최근 30일)
이전 댓글 표시
i have
a= [0 0 1 0 1 0 1 1]
i want to convert it, into decimal value 43
댓글 수: 0
답변 (3개)
Azzi Abdelmalek
2014년 2월 26일
편집: Azzi Abdelmalek
2014년 2월 26일
a= [0 0 1 0 1 0 1 1];
b=bin2dec(sprintf('%d',a))
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!