How to read .dat file and remove headerline from the file using textscan ?

2 次查看(过去 30 天)
Hi,
I want to analysis a text file data ...
IgorTime,Extinction,Scattering,Loss,Pressure,Temperature,Signal,LossRef,Status,WC,SignalRef,RawScatRef,RawScat,SDR,WCRef,Timestamp
3636548572.81,91.964,76.805,598.664,750.80,303.97,51037,518.748,10135,0.977,56823.625,18569.550,22996,1754,0.975,2019/03/27 16:22:54.082
3636548573.81,92.384,78.404,598.979,751.26,303.97,51024,518.748,10135,0.977,56823.625,18569.550,23143,1754,0.975,2019/03/27 16:22:55.082
3636548574.81,81.198,69.516,590.807,750.95,303.98,51560,518.748,10135,0.977,56823.625,18569.550,22729,1754,0.975,2019/03/27 16:22:56.082
3636548575.81,82.222,73.687,591.547,750.49,303.98,51517,518.748,10135,0.977,56823.625,18569.550,23118,1754,0.975,2019/03/27 16:22:57.082

回答(1 个)

Raj
Raj 2019-6-14
See the "Name-Value Pair Arguments" section here:
You can use 'HeaderLines' to skip reading the header lines.
  1 个评论
Vishnu Dhakad
Vishnu Dhakad 2019-6-14
I have tried following code
f = load('CAPS_20190606.dat');
but i did not got timestamp data
can you help me to read the file?

请先登录,再进行评论。

类别

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

标签

产品


版本

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by