how to convert text into binary

how to convert text into binary

4 个评论

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.
Or perhaps convert 'text' to 'binary':
function out = text2binary(txt)
out = regexprep(txt,'text','binary');
end
Omar Ibrahim comments
i need bin2dec convert

请先登录,再进行评论。

回答(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 Exchange 中查找有关 Data Type Conversion 的更多信息

提问:

2014-9-21

Community Treasure Hunt

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

Start Hunting!

Translated by