convert to binary

3 次查看(过去 30 天)
huda nawaf
huda nawaf 2011-8-16
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
Use the dec2bin function, the result is a string

更多回答(1 个)

huda nawaf
huda nawaf 2011-8-16
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

请先登录,再进行评论。

类别

Help CenterFile 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