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 件のコメント

Walter Roberson
Walter Roberson 2023 年 4 月 2 日
On Mac and Linux systems, I recommend using the operating-system supplied od utility to examine the content of binary files.

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeConvert Image Type についてさらに検索

質問済み:

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