i have a folder with files named as follows: f0K.csv f1K.csv f2K.csv and so on…
i want to create a for loop that will assign the data inside each file to a matrix using xlsread somthing like this :
if true % code
for i = 0:100MyFiles(i,:) = xlsread('f*i*K.csv','E1:E2500');endend
i know that there is an option to do so but haven't found it (i probably just don't know how to search! ) also , i know it's easy to do with dir('MyFolder') but for some mysterious reason its not working (i made sure its in the path ) so i'm trying to pass that obstacle in adifferent way
would appreciate your kind help !!!
Best Answer