NaT in Datetime Import Data

I'm trying to import data and catagorise them as Datetime but the data keeps getting replaced by NaT, very confused as my formatting seems to be correct. Any help?

3 Commenti

KSSV
KSSV il 13 Ott 2021
How are you trying to importing? How is your data? Show us your code snippet and data.
Alana Mera
Alana Mera il 13 Ott 2021
All the dates come up as NaT when trying to format it. I'm very new to Matlab :(
Post the relevant parts of your code as text (rather than attaching it as a .m file)
Attach (upload) at least one of the .csv files

Accedi per commentare.

Risposte (1)

KSSV
KSSV il 13 Ott 2021
Try using readtable. Read about it.
T = readtable('myfile.xlsx') ;

Categorie

Richiesto:

il 13 Ott 2021

Commentato:

il 13 Ott 2021

Community Treasure Hunt

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

Start Hunting!

Translated by