举个例子,批量读取文件,file=dir('F:\cabspottingdata\cabspottingdata\*.txt');for n=1:length(file); D{n,1}=importdata(['F:\cabspottingdata\cabspottingdata\',file(n).name]);end
% 将星号(*)换成你的图片文件名就可以了