Long file name read
Mostrar comentarios más antiguos
Hi all,
I have 100 files naming e.g: 20120926092230TC.txt[description of the file: 20120926: Year-Month-Date,092230: changes for file to file and TC is fixed. Every file start with 2012..what I want to do is to use 2012 as a identifier and load all files associated with 2012. How can I do this?
/MJ
Respuestas (1)
José-Luis
el 5 de Oct. de 2012
Assuming the files are in the current directory:
your_files = dir('2012*.txt');
But otherwise you could always give the complete path:
your_files = dir('/path/to/files/2012*.txt');
Categorías
Más información sobre Data Import and Analysis en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!