Loops in sub folders

1 次查看(过去 30 天)
Najiya Omar
Najiya Omar 2018-1-15
评论: Jan 2018-1-16
I have 10 folders and each one has subfolder which has the same name of all 10 called test. under test folders have subfolders named test1 including the data want to plot two rows.
  14 个评论
Jan
Jan 2018-1-16
This will not work because it pads the char matrix with spaces:
myPaths = ['100H' ; '200H' ; '300H' ; '400H' ; '%700H' ; '800H' ; '900H' ; '10000H'];
Use a cell string instead:
myPaths = {'100H' ; '200H' ; '300H' ; '400H' ; '%700H' ; '800H' ; '900H' ; '10000H'};
and replace myPaths(i,:) by myPaths{i}.

请先登录,再进行评论。

回答(2 个)

Image Analyst
Image Analyst 2018-1-15
See attached demos to recursively find files in folders and subfolders.

Najiya Omar
Najiya Omar 2018-1-16
this m.file

类别

Help CenterFile Exchange 中查找有关 Loops and Conditional Statements 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by