Loops in sub folders

1 visualización (últimos 30 días)
Najiya Omar
Najiya Omar el 15 de En. de 2018
Comentada: Jan el 16 de En. de 2018
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 comentarios
Najiya Omar
Najiya Omar el 16 de En. de 2018
Thanks
Jan
Jan el 16 de En. de 2018
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}.

Iniciar sesión para comentar.

Respuestas (2)

Image Analyst
Image Analyst el 15 de En. de 2018
See attached demos to recursively find files in folders and subfolders.

Najiya Omar
Najiya Omar el 16 de En. de 2018
this m.file

Categorías

Más información sobre Loops and Conditional Statements en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by