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 Exchange에서 Dates 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