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

조회 수: 2 (최근 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 CenterFile Exchange에서 Text Files에 대해 자세히 알아보기

태그

제품


릴리스

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by