How to convert a Ascii Text input to Binary Output

9 visualizaciones (últimos 30 días)
G F
G F el 11 de Nov. de 2014
Comentada: Star Strider el 12 de Nov. de 2014
Hi, i am given an ASCII value as an input and i want to convert it into BINARY Output.
  1 comentario
G F
G F el 11 de Nov. de 2014
Hello Guys,could you tel me the meaning of this command line:-
function rem = binary_rem(input, genpol)
input = [input zeros(1,length(genpol)-1) 0];

Iniciar sesión para comentar.

Respuesta aceptada

Star Strider
Star Strider el 11 de Nov. de 2014
Your question is a bit ambiguous, but this may be what you’re looking for:
asv = uint8('A')
asb = dec2bin(asv)
produces:
asv =
65
asb =
1000001
  9 comentarios
G F
G F el 12 de Nov. de 2014
Yes thanks again... :)
Star Strider
Star Strider el 12 de Nov. de 2014
My pleasure!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Random Number Generation 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