How to convert Binary image into a text file ?

I am working on a project of IC sorting and can't find a way to convert the binary image in to a textfile

답변 (3개)

Azzi Abdelmalek
Azzi Abdelmalek 2015년 6월 7일
편집: Azzi Abdelmalek 2015년 6월 7일

0 개 추천

dlmwrite(Text_FileName,Your_Image)
Walter Roberson
Walter Roberson 2015년 6월 7일

0 개 추천

T = cellstr(char(BinaryImage + '0'));
fid = fopen('YourFile.txt', 'wt');
fprintf('%s\n', T{:});
fclose(fid);
jhon frulay
jhon frulay 2023년 4월 2일

0 개 추천

This is not for programing but just if you want to see the binary code do this.
open a file thats not a text encoding and you get something like this:

댓글 수: 1

On Mac and Linux systems, I recommend using the operating-system supplied od utility to examine the content of binary files.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Language Support에 대해 자세히 알아보기

질문:

2015년 6월 7일

댓글:

2023년 4월 2일

Community Treasure Hunt

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

Start Hunting!

Translated by