NaT in Datetime Import Data

7 次查看(过去 30 天)
Alana Mera
Alana Mera 2021-10-13
评论: Star Strider 2021-10-13
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 个评论
Alana Mera
Alana Mera 2021-10-13
All the dates come up as NaT when trying to format it. I'm very new to Matlab :(
Star Strider
Star Strider 2021-10-13
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

请先登录,再进行评论。

回答(1 个)

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

类别

Help CenterFile Exchange 中查找有关 Dates and Time 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by