*.dat file reader

1 visualización (últimos 30 días)
William Maudru
William Maudru el 7 de Sept. de 2016
Editada: per isakson el 12 de Sept. de 2016
Hello everyone,
I searched in the help documentation but I didn't find. Is there a function already exixsting in MATLAB in order to open and read a *.DAT file as for example the xlsread ? The *:dat file should contain a tables with the 2 first rows as names and units, the rest is some data.
Thank you for your help
  1 comentario
per isakson
per isakson el 12 de Sept. de 2016
Editada: per isakson el 12 de Sept. de 2016
See Data Import and Export. I would have used textscan, but there are many alternatives. The .DAT extension is not important as long as it's a text file.

Iniciar sesión para comentar.

Respuestas (1)

George
George el 7 de Sept. de 2016
readtable() should do it. Take a look at 'HeaderLines' if needed.
  1 comentario
William Maudru
William Maudru el 12 de Sept. de 2016
Thank you very much I will try it

Iniciar sesión para comentar.

Categorías

Más información sobre Data Import and Analysis 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