Importing from multiple folders

2 次查看(过去 30 天)
sam moor
sam moor 2016-5-16
编辑: sam moor 2016-5-18
I want to import multiple folders
  1 个评论
Jan
Jan 2016-5-16
编辑:Jan 2016-5-16
The screenshot are not useful inm the forum. Better post text.
Better ask one question per thread.

请先登录,再进行评论。

回答(1 个)

Jan
Jan 2016-5-16
BasePath = 'E:\model';
FileName = 'driftstories.out';
SubList = dir(fullfile(BasePath, 'rk*'));
Data = cell(1, length(SubList));
for iFolder = 1:length(SubList)
File = fullfile(BasePath, SubList(iFolder).name, FileName);
Data{iFolder} = IMPORT(File);
end
Now replace the IMPORT command by a matching code to import the data. The posted screenshot does not allow to guess this part. And the plotting part cannot be provided based on the given details also.

类别

Help CenterFile Exchange 中查找有关 Data Import and Analysis 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by