2013-10-07 35 views

回答

1

您可以使用dir获取文件信息在文件所在的目录

threshold = 1000; % set threshold for size 

filenames = dir('*.csv'); 
for i = 1:length(filenames) 
    if filenames(i).bytes> threshold 
    data=xlsread(filenames(i).name); 
    ***your code here 
    end 
end 
相关问题