Date & Time import

2 次查看(过去 30 天)
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

更多回答(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