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

 Akzeptierte Antwort

Paulo Silva
Paulo Silva am 16 Aug. 2011

0 Stimmen

Use the dec2bin function, the result is a string

Weitere Antworten (1)

huda nawaf
huda nawaf am 16 Aug. 2011

0 Stimmen

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

2 Kommentare

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

Melden Sie sich an, um zu kommentieren.

Kategorien

Community Treasure Hunt

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

Start Hunting!

Translated by