Matlab----获取一个文件夹下所有文件名
Matlab----获取一个文件夹下所有文件名
fileFolder=fullfile('D:\document\literature\PolyU_Palmprint_Database\right_first');
dirOutput=dir(fullfile(fileFolder,'*.bmp'));
fileNames={dirOutput.name}';
然后保存fileNames,就ok了fileFolder=fullfile('D:\document\literature\PolyU_Palmprint_Database\right_first');
dirOutput=dir(fullfile(fileFolder,'*.bmp'));
fileNames={dirOutput.name}';
然后保存fileNames,就ok了