Date & Time import

조회 수: 3 (최근 30일)
vivek narayanan
vivek narayanan 2021년 6월 17일
댓글: vivek narayanan 2021년 6월 17일
Hi All,
Could you help me to import date and time(yyyy-mm-dd hh:mm:ss) from the following file.....
2020-10-07T13:30:00.000 3 51.59920 -1.14028
2020-10-07T13:30:00.000 3 51.59920 -1.14028
2020-10-07T14:30:00.000 3 51.59946 -1.14015
2020-10-07T14:30:00.000 3 51.59946 -1.14015
2020-10-07T15:00:00.000 3 51.59945 -1.14009
...............................................
...............................................

채택된 답변

Cris LaPierre
Cris LaPierre 2021년 6월 17일
data = readtable('vivekData.txt')
data = 5×4 table
Var1 Var2 Var3 Var4 _______________________ ____ ______ _______ 2020-10-07T13:30:00.000 3 51.599 -1.1403 2020-10-07T13:30:00.000 3 51.599 -1.1403 2020-10-07T14:30:00.000 3 51.599 -1.1401 2020-10-07T14:30:00.000 3 51.599 -1.1401 2020-10-07T15:00:00.000 3 51.599 -1.1401
data.Var1.Format = 'yyyy-MM-dd HH:mm:ss'
data = 5×4 table
Var1 Var2 Var3 Var4 ___________________ ____ ______ _______ 2020-10-07 13:30:00 3 51.599 -1.1403 2020-10-07 13:30:00 3 51.599 -1.1403 2020-10-07 14:30:00 3 51.599 -1.1401 2020-10-07 14:30:00 3 51.599 -1.1401 2020-10-07 15:00:00 3 51.599 -1.1401
  댓글 수: 1
vivek narayanan
vivek narayanan 2021년 6월 17일
Many thanks

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

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