Error using datetime - Input data must be one numeric matrix when converting from a different date/time representation.
18 ビュー (過去 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!