convert to binary

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 个评论

dec2bin(DecimalValue,nbits)
example
dec2bin(63,10)
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