Info
La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.
listing files in textfile
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
k
1 comentario
Walter Roberson
el 13 de Ag. de 2012
The fprintf() could be simplified to
fprintf(fff, '%s\n', fileNames{i});
Respuestas (1)
Walter Roberson
el 13 de Ag. de 2012
The order of files returned by dir() is "whatever is returned by the underlying operating system". In turn operating systems might use different orderings depending on the variety of filesystem being used.
You must therefore sort the names before you print them out. See http://www.mathworks.com/matlabcentral/fileexchange/8399-sortn-sort-textual-lists
0 comentarios
La pregunta está cerrada.
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!