file sorting into sub folder
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Hello,inside my folder i have files in which the first the name before _0 or _1 represent the category. how could i recognize all the files of the same category and put them into their own a new sub folder.
Thanks
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/160916/image.jpeg)
0 comentarios
Respuestas (1)
Jos (10584)
el 21 de Feb. de 2017
Why use matlab for this? Just call the OS
mkdir('cat_1')
system('mv *_1.txt cat_1/.') % linux
dos('move *_1.txt cat_1\.;) % windows
but, you might take a look at movefile
0 comentarios
Ver también
Categorías
Más información sobre Structures 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!