HOW TO CONVERT AN .OUT FILE TO .TXT FILE VIA MATLAB

조회 수: 28 (최근 30일)
Ivan Mich
Ivan Mich 2019년 9월 28일
댓글: Ivan Mich 2019년 9월 29일
Hello
Does anybody knows how to convert an .out file to .txt file via Matlab?

채택된 답변

dpb
dpb 2019년 9월 28일
편집: dpb 2019년 9월 29일
There's nothing about the file content that is specific to the name including the extension.
fn='yourfile.out';
[~,f]=fileparts(fn);
movefile(fn,[f '.txt'])
  댓글 수: 8
dpb
dpb 2019년 9월 29일
편집: dpb 2019년 9월 29일
Or more simply use the OS and just
!ren A*.out *.txt
Thanks for the catch on the new extension, Walter, I totally missed that part of the cleanup where I had pasted in the first name again...did fixup the Answer for posterity.
Ivan Mich
Ivan Mich 2019년 9월 29일
Thank you again !!!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by