Error using datetime - Input data must be one numeric matrix when converting from a different date/time representation.
16 次查看(过去 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!