MATLAB Answers

how to convert text into binary

153 views (last 30 days)
amal
amal on 21 Sep 2014
Answered: Nikesh Bajaj on 3 Jan 2016
how to convert text into binary

  4 Comments

Show 1 older comment
Stephen Cobeldick
Stephen Cobeldick on 22 Sep 2014
Or perhaps convert 'text' to 'binary':
function out = text2binary(txt)
out = regexprep(txt,'text','binary');
end
Walter Roberson
Walter Roberson on 27 Dec 2015
Omar Ibrahim comments
i need bin2dec convert
Walter Roberson
Walter Roberson on 27 Dec 2015
Omar:
dec2bin('abc') - '0'

Sign in to comment.

Answers (1)

Nikesh Bajaj
Nikesh Bajaj on 3 Jan 2016
Use file text2bin which convert text to binary, there is file to convert binary to text back.

  0 Comments

Sign in to comment.

Sign in to answer this question.