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개)

Azzi Abdelmalek
Azzi Abdelmalek 2014년 2월 26일
편집: Azzi Abdelmalek 2014년 2월 26일

0 개 추천

a= [0 0 1 0 1 0 1 1];
b=bin2dec(sprintf('%d',a))

카테고리

도움말 센터File Exchange에서 Logical에 대해 자세히 알아보기

태그

질문:

2014년 2월 26일

답변:

2014년 2월 26일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by