Way to import time series date string as mm-dd-yyyy
조회 수: 2 (최근 30일)
이전 댓글 표시
My data is in the format of mm-dd-yyyy hh:mm:ss however it seems like the time series import tool will only import dates & time data if the format is in dd-mmm-yyyy hh:mm:ss
댓글 수: 1
Jan
2011년 9월 20일
What exactly is your question? Can you post the type of the available input and wanted output?
채택된 답변
Jan
2011년 9월 20일
You can convert the data manually:
S1 = '07-12-2011 13:14:15'
D = datenum(S1, 'mm-dd-yyyy HH:MM:SS');
S2 = datestr(D, 'dd-mmm-yyyy HH:MM:SS')
댓글 수: 0
추가 답변 (2개)
Chris
2011년 9월 20일
댓글 수: 2
Fangjun Jiang
2011년 9월 20일
Time series supports all the data format. What tsimport tool are you using?
참고 항목
카테고리
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!