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

1 回表示 (過去 30 日間)
Vishnu Dhakad
Vishnu Dhakad 2019 年 6 月 14 日
コメント済み: Vishnu Dhakad 2019 年 6 月 14 日
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 Center および File ExchangeText Files についてさらに検索

タグ

製品


リリース

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by