Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
listing files in textfile
조회 수: 1 (최근 30일)
이전 댓글 표시
k
댓글 수: 1
Walter Roberson
2012년 8월 13일
The fprintf() could be simplified to
fprintf(fff, '%s\n', fileNames{i});
답변 (1개)
Walter Roberson
2012년 8월 13일
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
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!