string convert to binary 8

2 visualizzazioni (ultimi 30 giorni)
LEKHCHINE Somia
LEKHCHINE Somia il 24 Ago 2019
Commentato: LEKHCHINE Somia il 25 Ago 2019
how convert string (more than one character, two, three......) to 8 binary

Risposte (1)

Walter Roberson
Walter Roberson il 25 Ago 2019
bit_vector = reshape((dec2bin(uint8(TheCharacterVector), 8) - '0').', 1, []);
  1 Commento
LEKHCHINE Somia
LEKHCHINE Somia il 25 Ago 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

Accedi per commentare.

Categorie

Scopri di più su Numeric Types in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by