clear;
close all;
x=imread('lena512.bmp');
rgbImage = x;
[rows, columns, numberOfColorChannels] = size(rgbImage)
fid = fopen('datat1.txt', 'wt');
for col = 1 : columns
for row = 1 : rows
fprintf(fid, '%d, %d = (%d, %d, %d)\n', ...
row, col, ...
rgbImage(row, col, 1));
end
end
but i need exact colomn and row wise
and iam getting like this