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

29 Ansichten (letzte 30 Tage)
Ivan Mich
Ivan Mich am 28 Sep. 2019
Kommentiert: Ivan Mich am 29 Sep. 2019
Hello
Does anybody knows how to convert an .out file to .txt file via Matlab?

Akzeptierte Antwort

dpb
dpb am 28 Sep. 2019
Bearbeitet: dpb am 29 Sep. 2019
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 Kommentare
dpb
dpb am 29 Sep. 2019
Bearbeitet: dpb am 29 Sep. 2019
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 am 29 Sep. 2019
Thank you again !!!

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu MATLAB finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by