Borrar filtros
Borrar filtros

reshape,ascii to binary

1 visualización (últimos 30 días)
osman yurdakul
osman yurdakul el 19 de Mayo de 2011
hi friends,
i have an ascii word and its binary state:
x = dec2bin('matlab')
x =
1101101
1100001
1110100
1101100
1100001
1100010
but i do not want this in this way... i want it like an array that is below:
y = 110110111000011110100110110011000011100010
the question is how can i convert x to y?
i tried reshape() function but i couldnt success :(
please let me know...

Respuesta aceptada

Sean de Wolski
Sean de Wolski el 19 de Mayo de 2011
y = reshape(x',1,numel(x))
transpose first
  7 comentarios
Matt Fig
Matt Fig el 20 de Mayo de 2011
sprintf('%i',yv)
osman yurdakul
osman yurdakul el 20 de Mayo de 2011
thanks again :)..

Iniciar sesión para comentar.

Más respuestas (1)

Fangjun Jiang
Fangjun Jiang el 19 de Mayo de 2011
y=x';
xx=y(:)'

Categorías

Más información sobre Logical en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by