I'm trying to display image with for loop. My code is like that. After the 9 picture the image file name is image_0010. So if i want to display this image now what i need to do? Thanks in advance.
imageArray = []; for i = 1:200 str = int2str(i); str = strcat('\','image_000',str,'.png'); str = strcat('C:\Users\Hasibur Rahman\Documents\MATLAB\ClassWork2_62018040032_哈西\LFPW\trainset', str); image = imread(str); imageArray = image; imageArray = imageArray + image; figure,imshow(imageArray); title('Original Image!'); pause(1.5); end
Best Answer