Reading data from a .data file
15 次查看(过去 30 天)
显示 更早的评论
Hi there
I'm having some problems figuring out how to read the data in a bunch of .data files that look like below when opened in notepad. Can anyone help?
Thanks in advance
Instrument: AIU-2371
File Type: 2
Software Version: 8.9.0
Timestamp: 19:10:54
Timezone: UTC
DATAH Seconds Nanoseconds Sequence Number
DATA 1661800254 300000000 10036541
DATA 1661800254 400000000 10036571
DATA 1661800254 500000000 10036601
DATA 1661800254 600000000 10036631
(etc...)
0 个评论
采纳的回答
Voss
2023-11-8
readtable with 'FileType' and 'NumHeaderLines' parameters specified may work:
% I zipped the example .data file I made, in order to upload it;
% unzip the zip file now:
unzip test.zip
% read the file:
T = readtable('test.data','FileType','text','NumHeaderLines',5)
If that doesn't work, zip (or change the extension of) one or more of your .data files and upload it/them here using the paperclip button.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Import and Analysis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!