摘要:
1 Files = dir(strcat('D:\database2\test\standard\','\*.bmp'));2 N = length(Files);3 for i = 1:1:N4 fileName = Files(i).name;5 movefile(['D:\database2\test\standard\' fileName],['D:\database2\test\Temp\' num2str(i,'%02d') '-1.bmp']);6 end 阅读全文
posted @ 2013-05-03 19:13
CBDoctor
阅读(416)
评论(0)
推荐(0)
摘要:
1 function ResizeImageofData 2 % 读取文件夹下的所有数据 3 Files = dir('D:\1\'); %父文件夹 4 LengthFiles = length(Files); 5 oldFolder = cd; %打开当前工作目录 6 spath=strcat(oldFolder,'\Data\'); % 在工程目录下创建名为'\Data\'的新文件夹 7 8 if ~exist(spath,'dir') 9 mkdir(spath)10 end11 12 for i = 3:LengthFil 阅读全文
posted @ 2013-05-03 11:14
CBDoctor
阅读(792)
评论(0)
推荐(0)
浙公网安备 33010602011771号