How do I read a text file and convert the dates and time?
조회 수: 8 (최근 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!