filename = strcat('.\5Train\',num2str(i));
        load (filename);
       
        a=regexp(filename,'\.\\\d','match');
        b=regexp(a,'\d','match');
        temp=b{1,1};
        temp=temp{1,1};
        l=str2num(temp); %the number of training samples