*.dat file reader

1 Ansicht (letzte 30 Tage)
William Maudru
William Maudru am 7 Sep. 2016
Bearbeitet: per isakson am 12 Sep. 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 Kommentar
per isakson
per isakson am 12 Sep. 2016
Bearbeitet: per isakson am 12 Sep. 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.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

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

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Data Import and Analysis finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by