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 Center および File ExchangeMATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by