I am trying to read in 40 files to be executed by a certain function later in the code. There are 40 files named 'Part_#_D1', the # is a number between 1 and 40.
How can I read them in here and iterate the function on it? I was trying to use the %d thing and use the i but it keeps failing. How am I using this incorrectly?
for i = 1:40
img_part = imread('[/Users/cocosci/Desktop/H_All/,'Part_%d','/','Part_%d_D1.jpeg']'),i;
end