www.pudn.com > GaitRecognition.rar > makeDir.asv, change:2012-11-03,size:931b


clear; 
clc; 
tic; 
setPath;% 
xCondition=['nm-01' 'nm-02' 'nm-03' 'nm-04'];%仅用于生成trainSetPath 
cd(GEIpath);%进入数据目录,包含若干人的步态序列 
dataBaseDir=dir('.'); 
for xPerson=3:length(dataBaseDir)%遍历所有文件夹 
    cd(dataBaseDir(xPerson).name);%进入某人的步态序列目录    
    mkdir([trainSetPath dataBaseDir(xPerson).name]);%建立用于保存某人步态序列的目录 
    for x_condition=1:5:(length(xCondition)-4) 
          mkdir([trainSetPath dataBaseDir(xPerson).name '\' xCondition(x_condition:x_condition+4)]);%建立用于保存某人步某条件步态序列的目录         
          mkdir([trainSetPath dataBaseDir(xPerson).name '\' xCondition(x_condition:x_condition+4) '\090' ]);%建立用于保存某人步某条件步态序列的目录 
          copyfile([pwd,[trainSetPath dataBaseDir(xPerson).name '\' xCondition(x_condition:x_condition+4) '\090' ]); 
    end 
    cd ..%从某人步态序列目录往上一层 
end;% 
cd(rootPath); 
clear; 
toc;