string convert to binary 8

2 ビュー (過去 30 日間)
LEKHCHINE Somia
LEKHCHINE Somia 2019 年 8 月 24 日
コメント済み: LEKHCHINE Somia 2019 年 8 月 25 日
how convert string (more than one character, two, three......) to 8 binary

回答 (1 件)

Walter Roberson
Walter Roberson 2019 年 8 月 25 日
bit_vector = reshape((dec2bin(uint8(TheCharacterVector), 8) - '0').', 1, []);
  1 件のコメント
LEKHCHINE Somia
LEKHCHINE Somia 2019 年 8 月 25 日
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

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeNumeric Types についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by