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 件のコメント

KSSV
KSSV 2021 年 10 月 13 日
How are you trying to importing? How is your data? Show us your code snippet and data.
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 日

0 投票

Try using readtable. Read about it.
T = readtable('myfile.xlsx') ;

カテゴリ

ヘルプ センター および File ExchangeDates and Time についてさらに検索

質問済み:

2021 年 10 月 13 日

コメント済み:

2021 年 10 月 13 日

Community Treasure Hunt

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

Start Hunting!

Translated by