how convert string (more than one character, two, three......) to 8 binary

Antworten (1)

Walter Roberson
Walter Roberson am 25 Aug. 2019

0 Stimmen

bit_vector = reshape((dec2bin(uint8(TheCharacterVector), 8) - '0').', 1, []);

1 Kommentar

LEKHCHINE Somia
LEKHCHINE Somia am 25 Aug. 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

Melden Sie sich an, um zu kommentieren.

Kategorien

Gefragt:

am 24 Aug. 2019

Kommentiert:

am 25 Aug. 2019

Community Treasure Hunt

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

Start Hunting!

Translated by