I have a set of input image (im1,im2,im3,im4,im5; all have the size of [200 200]) and I want to resize them based on the matlab code: resized = imresize(input image,[100 100],'nearest').
I want to resize them and save them in different matrices 9such as out1, out2, out3, out4, out5).
I am suing the following code but it does not work, any solution?
for i = 1:5
varName = ['im' int2str(i)]; % output string
eval(['out' varName ' = imresize(' varName ',[100 100], 'nearest');']);
end