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

28 visualizaciones (últimos 30 días)
Ivan Mich
Ivan Mich el 28 de Sept. de 2019
Comentada: Ivan Mich el 29 de Sept. de 2019
Hello
Does anybody knows how to convert an .out file to .txt file via Matlab?

Respuesta aceptada

dpb
dpb el 28 de Sept. de 2019
Editada: dpb el 29 de Sept. de 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 comentarios
dpb
dpb el 29 de Sept. de 2019
Editada: dpb el 29 de Sept. de 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 el 29 de Sept. de 2019
Thank you again !!!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre MATLAB en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by