convert to binary

8 visualizaciones (últimos 30 días)
huda nawaf
huda nawaf el 16 de Ag. de 2011
hi, I need function convert integer to binary then alphabet.
what I must use to get that? thanks
  1 comentario
Image Analyst
Image Analyst el 16 de Ag. de 2011
What do you mean by "alphabet"?

Iniciar sesión para comentar.

Respuesta aceptada

Paulo Silva
Paulo Silva el 16 de Ag. de 2011
Use the dec2bin function, the result is a string

Más respuestas (1)

huda nawaf
huda nawaf el 16 de Ag. de 2011
thanks, can I get binary number with fixed length? say with 10 bits for all numbers, then can serve my work
thanks
  2 comentarios
Paulo Silva
Paulo Silva el 16 de Ag. de 2011
dec2bin(DecimalValue,nbits)
example
dec2bin(63,10)
Walter Roberson
Walter Roberson el 16 de Ag. de 2011
Read the dec2bin documentation. Even R13SP2 had the necessary feature. http://www.mathworks.com/help/releases/R13sp2/techdoc/matlab.html

Iniciar sesión para comentar.

Categorías

Más información sobre Data Type Conversion en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by