Problem with data type: calculate [HH:mm:ss.FFF]
1 回表示 (過去 30 日間)
古いコメントを表示
Hey, I need an easy way, to convert this time from [HH:mm:ss.FFF] into seconds. I have tried different ways, but I always have problems with the type of the data.
If I convert the data from str2double, I get "NaN" or can I seperate "HH, mm, ss, FFF" to calculate the seconds?
Thanks and best regards René
0 件のコメント
回答 (1 件)
Steven Lord
2020 年 3 月 25 日
Convert the text representations of those values into a duration array then call seconds on the duration array.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Data Type Conversion についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!