Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一些数据存储在.csv文件大小不同的文件中。我需要导入大小大于某个特定值的文件,例如 10MB。我怎样才能做到这一点?我正在使用xlsread导入文件。
.csv
xlsread
可以dir用来获取文件所在目录下的文件信息
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