Hello everyone. I converted 4 into binary and got 100 . my problem is that i want to use this 100 as a decimal but the matlab is obviously treating it as a binary number. Please help

 채택된 답변

Mischa Kim
Mischa Kim 2014년 2월 28일
편집: Mischa Kim 2014년 2월 28일
You could
my_bindec = str2num(dec2bin(4))/5
ans =
20

추가 답변 (1개)

카테고리

질문:

2014년 2월 28일

답변:

lvn
2014년 2월 28일

Community Treasure Hunt

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

Start Hunting!

Translated by