Hello everybody,
I have 100 images, what my code does is reading the image and shows them, but I need to write a title on each image through the showing. When I run my code, the images begin showning but there is no titl on them just on the last one. What I need is showing the images in sequence and the title one them.
srcFiles = dir('F:\the source\*.mim');for i = 1 : length(srcFiles) filename = strcat('F:\the source\',srcFiles(i).name); S{i} = double(imread(filename)); n=n+1;end for j=1:n imshow(S{j},[]); D{j} = imcrop(S{j},[35 1 260 240]); imshow(D{j},[]) title(j); end
Thanks
Best Answer