NaT in Datetime Import Data

조회 수: 22 (최근 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