Date & Time import

2 visualizzazioni (ultimi 30 giorni)
vivek narayanan
vivek narayanan il 17 Giu 2021
Commentato: vivek narayanan il 17 Giu 2021
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
...............................................
...............................................

Risposta accettata

Cris LaPierre
Cris LaPierre il 17 Giu 2021
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

Più risposte (0)

Categorie

Scopri di più su Data Import and Analysis in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by