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 件のコメント
Najiya Omar
Najiya Omar 2018 年 1 月 16 日
Thanks
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 Center および File ExchangeLoops and Conditional Statements についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by