string convert to binary 8

3 visualizaciones (últimos 30 días)
LEKHCHINE Somia
LEKHCHINE Somia el 24 de Ag. de 2019
Comentada: LEKHCHINE Somia el 25 de Ag. de 2019
how convert string (more than one character, two, three......) to 8 binary

Respuestas (1)

Walter Roberson
Walter Roberson el 25 de Ag. de 2019
bit_vector = reshape((dec2bin(uint8(TheCharacterVector), 8) - '0').', 1, []);
  1 comentario
LEKHCHINE Somia
LEKHCHINE Somia el 25 de Ag. de 2019
sorry may be my question was not clear
my object is to convert 'something like password or any thing ex:(hello)' to '8 bits ex:(10101010)'
so I want to insert it like watermark in my frame because I use dct algorithm

Iniciar sesión para comentar.

Categorías

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

Community Treasure Hunt

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

Start Hunting!

Translated by