I want to save an image's array to a text file in order to show it again.
But I don't know how to store it in right conditions.
I'm using the following code:
I = imread('image.jpg');image=mat2gray(I);imshow(image);FID = fopen('FileName.txt', 'w');if FID == -1, error('Cannot create file.'); endfprintf(FID, '%f \n', image);fclose(FID);
Best Answer