How to change file extension via matlab?
이전 댓글 표시
Hello,
I have a question. I would like to change the extension of several files. I mean that in one directory a I have many files in type file1.out., file2.out ,..., file600.out.
I would like to rename these files to *.txt (I mean file1.txt, file2.txt,...., file600.txt) in this directory with one command via matlab?
Could anyone help me?
채택된 답변
추가 답변 (2개)
Femke Cappon
2021년 1월 27일
1 개 추천
Thank you, I have used to code to rewrite LabVIEW .lvm files to .txt
Musaddiq Al Ali
2020년 12월 6일
편집: Musaddiq Al Ali
2020년 12월 6일
Mr. Adam Danz's code is vey nice and neat. I like it. I would like to suggest, to add '\' to the secound lines of the code:-
fileList = dir([directory,'\','*.out']);
카테고리
도움말 센터 및 File Exchange에서 Programming에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!