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了