Importing from multiple folders

조회 수: 3 (최근 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에서 Standard File Formats에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by