Matlab 如何导入大小大于某个值的文件?
我在Matlab 如何导入大小大于某个值的文件?,matlab,Matlab,我在.csv文件中存储了一些不同大小的数据。我需要导入大小大于某个特定值(例如10MB)的文件。我该怎么做?我正在使用xlsread导入文件。您可以使用dir获取文件所在目录中的文件信息 threshold = 1000; % set threshold for size filenames = dir('*.csv'); for i = 1:length(filenames) if filenames(i).bytes> threshold data=xlsread(fil
.csv
文件中存储了一些不同大小的数据。我需要导入大小大于某个特定值(例如10MB)的文件。我该怎么做?我正在使用xlsread
导入文件。您可以使用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