Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save juniorhero/9f967086fb70f38a47a23419fac39240 to your computer and use it in GitHub Desktop.
Save juniorhero/9f967086fb70f38a47a23419fac39240 to your computer and use it in GitHub Desktop.
Matlab code to run any script on any folder of N files
cd 'D:\\'
imagefiles = dir('*.jpg');
nfiles = length(imagefiles);
for ii=1:nfiles
currentfilename = imagefiles(ii).name;
I = imread(currentfilename);
% YOUr CODE HERE %
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment