matlab 文件遍历

function MyGetFiles(F)
path=F;
filelist=dir(fullfile(path,'*.JPG'));
n=length(filelist);
for i=1:n
f=strcat(path,filelist(i).name);
disp(f);
end

MyGetFiles('N:/MAT/img/eye/');

原文地址:https://www.cnblogs.com/ahuo/p/4785674.html