Date: Nov 26, 2012 4:42 PM
Author: luma
Subject: Problem,Store colored image in a text file

Hello ,

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