How do I read a text file and convert the dates and time?
8 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Hi! I have a text file that includes the following:
2015-06-18 12:00
0 Commenti
Risposta accettata
Più risposte (1)
Peter Perkins
il 3 Ago 2018
It's likely that you want to read the file using readtable, and if you are using a recent version of MATLAB, you will get datetimes automatically. If not, you can convert to datetime after importing.
You are better off using datetime than datenum.
0 Commenti
Vedere anche
Categorie
Scopri di più su Dates and Time 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!