Hello,
Here is my code
for y=500:571fileID=num2str(y); filename=['Probe TestID ',fileID];myFolder1='C:\';filePattern1=fullfile(myFolder,filename)D=xlsread(filePattern1,'E:E');...end
The files in 'myFilder1' are named as Probe TestID XXX but they are not always continuous (with 1 iteration), i.e, Probe TestID 500, Probe TestID 501, Probe TestID 509,….
How do I create a loop that will skip the discontinuity and read all the files without erroring out?
Thank you!
Best Answer