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.
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
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 Exchange에서 Data 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