hi, I need function convert integer to binary then alphabet.
what I must use to get that? thanks

 채택된 답변

Paulo Silva
Paulo Silva 2011년 8월 16일

0 개 추천

Use the dec2bin function, the result is a string

추가 답변 (1개)

huda nawaf
huda nawaf 2011년 8월 16일

0 개 추천

thanks, can I get binary number with fixed length? say with 10 bits for all numbers, then can serve my work
thanks

댓글 수: 2

Paulo Silva
Paulo Silva 2011년 8월 16일
dec2bin(DecimalValue,nbits)
example
dec2bin(63,10)
Walter Roberson
Walter Roberson 2011년 8월 16일
Read the dec2bin documentation. Even R13SP2 had the necessary feature. http://www.mathworks.com/help/releases/R13sp2/techdoc/matlab.html

댓글을 달려면 로그인하십시오.

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by