1. Assign the path of the folder containing the set of images using "cd" command.
2. Then use "dir" command to read the files of folder. "*.bmp" means all bmp files.
cd ('C:\Users\Jack Sparrow\Documents\MATLAB\MarkovTPM\images'); % Path where the images are stored
im_name=dir('*.bmp');
maxImages=length(im_name)
for i=1:maxImages
im=imread(im_name(i).name);
end
cd ('C:\Users\Jack Sparrow\Documents\MATLAB\MarkovTPM\images'); % Path where the images are stored
im_name=dir('*.bmp');
maxImages=length(im_name)
for i=1:maxImages
im=imread(im_name(i).name);
end