how to convert text into binary

how to convert text into binary

4 comentarios

Image Analyst
Image Analyst el 21 de Sept. de 2014
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 el 22 de Sept. de 2014
Or perhaps convert 'text' to 'binary':
function out = text2binary(txt)
out = regexprep(txt,'text','binary');
end
Walter Roberson
Walter Roberson el 27 de Dic. de 2015
Omar Ibrahim comments
i need bin2dec convert
Omar:
dec2bin('abc') - '0'

Iniciar sesión para comentar.

Respuestas (1)

Nikesh Bajaj
Nikesh Bajaj el 3 de En. de 2016

0 votos

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

Categorías

Más información sobre Data Type Conversion en Centro de ayuda y File Exchange.

Preguntada:

el 21 de Sept. de 2014

Respondida:

el 3 de En. de 2016

Community Treasure Hunt

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

Start Hunting!

Translated by