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 个评论

per isakson
per isakson 2016-9-12
编辑:per isakson 2016-9-12
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.

请先登录,再进行评论。

回答(1 个)

George
George 2016-9-7

0 个投票

readtable() should do it. Take a look at 'HeaderLines' if needed.

标签

Community Treasure Hunt

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

Start Hunting!

Translated by