Loop through files in a folder in matlab - Stack Overflow
https://stackoverflow.com/questions/11621846/loop-through-files-in-a-folder-in-matlab
At first, you must specify your path, the path that your *.csv files are in there. path = 'f:\project\dataset' You can change it based on your system. then, use dir function : files = dir (strcat(path,'\*.csv')) L = length (files); for i=1:L image{i}=csvread(strcat(path,'\',file(i).name)); % process the image in here end pwd also can be used.
DA: 23 PA: 60 MOZ Rank: 99 Up or Down: Up