How to convert Binary image into a text file ?
Mostrar comentarios más antiguos
I am working on a project of IC sorting and can't find a way to convert the binary image in to a textfile
Respuestas (3)
Azzi Abdelmalek
el 7 de Jun. de 2015
Editada: Azzi Abdelmalek
el 7 de Jun. de 2015
dlmwrite(Text_FileName,Your_Image)
Walter Roberson
el 7 de Jun. de 2015
T = cellstr(char(BinaryImage + '0'));
fid = fopen('YourFile.txt', 'wt');
fprintf('%s\n', T{:});
fclose(fid);
jhon frulay
el 2 de Abr. de 2023
0 votos
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 comentario
Walter Roberson
el 2 de Abr. de 2023
On Mac and Linux systems, I recommend using the operating-system supplied od utility to examine the content of binary files.
Categorías
Más información sobre Language Support en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!