Converting binary to Decimal
이전 댓글 표시
I need to write a program that converts a 4-Bit Binary number to a decimal and reverse. How can i write a function that converts 4-bit binary to decimal and decimal to binary? What way can i check that the input is actually binary?
답변 (2개)
Walter Roberson
2011년 4월 13일
0 개 추천
How exactly is the binary number represented?
Michael Finch
2011년 4월 13일
0 개 추천
댓글 수: 3
John D'Errico
2011년 4월 13일
So, you know what you need to do. It is time to start writing.
Michael Finch
2011년 4월 13일
Walter Roberson
2011년 4월 14일
You wrote, "[...] that checks the number [...]"
*What* number? How *exactly* is that number represented?
카테고리
도움말 센터 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!