Error using datetime - Input data must be one numeric matrix when converting from a different date/time representation.
조회 수: 15 (최근 30일)
이전 댓글 표시
I have a 1443x1 double which is made up of time matlab serial numbers but when I try to use datetime to convert the serial numbers to the format HH:mm:ss.SSS I get the following error: "Input data must be one numeric matrix when converting from a different date/time representation." How do I convert the double to make this work? Thanks in advance!
댓글 수: 0
채택된 답변
Cris LaPierre
2021년 6월 18일
Typically you would use the 'ConvertFrom' name-value pair.
댓글 수: 2
Steven Lord
2021년 6월 18일
Don't pass in the char vector 'serialtime'. Pass in the variable serialtime.
x = 'abracadabra';
length('x') % the word 'x' is 1 character long
length(x) % the word stored in the variable named x is 11 characters long
추가 답변 (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!