How do I go from Excel serial date numbers to use in MATLAB without the Financial Toolbox?
조회 수: 3 (최근 30일)
이전 댓글 표시
How do I convert my Excel serial date numbers to use in MATLAB?
I do not have the Financial Toolbox so I cannot use the "x2mdate" function.
채택된 답변
MathWorks Support Team
2018년 4월 24일
Use readtable to import the dates from the spreadsheet as datetimes.
Alternatively, If the Excel dates have already been imported into MATLAB as numbers then converting from Excel serial date numbers to MATLAB datetime format can be done with the "datetime" function by using the 'ConvertFrom' option.
댓글 수: 1
Peter Perkins
2018년 4월 6일
This is the right thing to do if the Excel dates have already been imported into MATLAB as numbers. But in many cases, the right thing to do is to use readtable to import the dates from the spreadsheet as datetimes, no conversion necessary.
추가 답변 (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!