Importing from multiple folders

1 visualización (últimos 30 días)
sam moor
sam moor el 16 de Mayo de 2016
Editada: sam moor el 18 de Mayo de 2016
I want to import multiple folders
  1 comentario
Jan
Jan el 16 de Mayo de 2016
Editada: Jan el 16 de Mayo de 2016
The screenshot are not useful inm the forum. Better post text.
Better ask one question per thread.

Iniciar sesión para comentar.

Respuestas (1)

Jan
Jan el 16 de Mayo de 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.

Categorías

Más información sobre Calendar en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by