I used this code to store image in text file but it not work good .
path='E:\Matlab\bin\seq'; d=imread([path,int2str(100),'.jpg']); for i=1:3 dlmwrite('M.txt', d(:,:,i),'-append'); end
the result of run this code in a text file is 240*960.R G B
Please, I need another code to store colored image in file ,So that the image stored red, green and blue.I mean if image 240*320 to each color when stored in file store 240*320 to red then green and finally blue.(the matrix in file will be 720*320). R G B