how to write binary image into text file
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
hello, i want to write binary image into a text file. thank u
1 commentaire
Réponse acceptée
David Sanchez
le 28 Nov 2013
M = your_matrix_with_image_data;
fid = fopen('your_binary_im.txt', 'w+');
for i=1:size(M, 1)
fprintf(fid, '%f ', M(i,:));
fprintf(fid, '\n');
end
fclose(fid);
3 commentaires
Plus de réponses (0)
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!