How do I read a text file and convert the dates and time?
5 次查看(过去 30 天)
显示 更早的评论
采纳的回答
更多回答(1 个)
Peter Perkins
2018-8-3
It's likely that you want to read the file using readtable, and if you are using a recent version of MATLAB, you will get datetimes automatically. If not, you can convert to datetime after importing.
You are better off using datetime than datenum.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Dates and Time 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!