how to convert text into binary

how to convert text into binary

4 件のコメント

Image Analyst
Image Analyst 2014 年 9 月 21 日
Like a binary image? Or like using dec2bin('abc')? As you know everything in digital computers is ultimately already binary , so since your text is already in binary we need to know what you really mean.
Stephen23
Stephen23 2014 年 9 月 22 日
Or perhaps convert 'text' to 'binary':
function out = text2binary(txt)
out = regexprep(txt,'text','binary');
end
Walter Roberson
Walter Roberson 2015 年 12 月 27 日
Omar Ibrahim comments
i need bin2dec convert
Walter Roberson
Walter Roberson 2015 年 12 月 27 日
Omar:
dec2bin('abc') - '0'

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

回答 (1 件)

Nikesh Bajaj
Nikesh Bajaj 2016 年 1 月 3 日

0 投票

Use file text2bin which convert text to binary, there is file to convert binary to text back.

カテゴリ

ヘルプ センター および File ExchangeData Type Conversion についてさらに検索

質問済み:

2014 年 9 月 21 日

回答済み:

2016 年 1 月 3 日

Community Treasure Hunt

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

Start Hunting!

Translated by