Importing from multiple folders

1 Ansicht (letzte 30 Tage)
sam moor
sam moor am 16 Mai 2016
Bearbeitet: sam moor am 18 Mai 2016
I want to import multiple folders
  1 Kommentar
Jan
Jan am 16 Mai 2016
Bearbeitet: Jan am 16 Mai 2016
The screenshot are not useful inm the forum. Better post text.
Better ask one question per thread.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Jan
Jan am 16 Mai 2016
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.

Kategorien

Mehr zu Data Import and Analysis finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by