字符串操作代码

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

你可能感兴趣的:(Training)