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
2015-6-7
编辑:Azzi Abdelmalek
2015-6-7
dlmwrite(Text_FileName,Your_Image)
Walter Roberson
2015-6-7
T = cellstr(char(BinaryImage + '0'));
fid = fopen('YourFile.txt', 'wt');
fprintf('%s\n', T{:});
fclose(fid);
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
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 Exchange 中查找有关 Language Support 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!