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

Antworten (3)

Azzi Abdelmalek
Azzi Abdelmalek am 7 Jun. 2015
Bearbeitet: Azzi Abdelmalek am 7 Jun. 2015

0 Stimmen

dlmwrite(Text_FileName,Your_Image)
Walter Roberson
Walter Roberson am 7 Jun. 2015

0 Stimmen

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

0 Stimmen

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 Kommentar

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

Melden Sie sich an, um zu kommentieren.

Kategorien

Gefragt:

am 7 Jun. 2015

Kommentiert:

am 2 Apr. 2023

Community Treasure Hunt

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

Start Hunting!

Translated by