HOW TO OPEN .DAT FILE?

4 次查看(过去 30 天)
Vishnu Dhakad
Vishnu Dhakad 2018-7-18
PLEASE FIND THE ATTACHEMENT?
THANKS

回答(1 个)

Walter Roberson
Walter Roberson 2018-7-18
opt = detectImportOptions('WRAS-C.txt');
t = readtable('WRAS-C.txt', opt);
The detectImportOptions part needs R2016b or later.
For earlier releases, the best way depends upon which MATLAB release you are using.
  2 个评论
Vishnu Dhakad
Vishnu Dhakad 2018-7-18
THANK YOU,,,,,
BUT MY FILE IS IN .DAT FORMATE.
Walter Roberson
Walter Roberson 2018-7-18
No it isn't.
>> !unzip -t WRAS-C.zip
Archive: WRAS-C.zip
testing: WRAS-C.txt OK
No errors detected in compressed data of WRAS-C.zip.
You have a .txt file not a .dat file.
But if what you really had is WRAS-C.dat then
filename = 'WRAS-C.dat';
opt = detectImportOptions(filename, 'filetype', 'text');
t = readtable(filename, opt);

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Data Import and Analysis 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by