duration to number(double)
793 ビュー (過去 30 日間)
古いコメントを表示
Juan Camilo Gómez Cadavid
2022 年 2 月 28 日
コメント済み: Juan Camilo Gómez Cadavid
2022 年 10 月 17 日
Any workaround to convert duration (seconds, hours, etc...) to a numeric value (double)
0 件のコメント
採用された回答
Steven Lord
2022 年 2 月 28 日
Use seconds, hours, etc. depending on how you want the duration array to be converted to a number.
d = duration(1, 2, 3)
s = seconds(d)
m = minutes(d)
h = hours(d)
5 件のコメント
Walter Roberson
2022 年 10 月 17 日
When you apply minutes() or seconds() or days() or hours() to a double, then a duration object is created.
When you apply those functions to duration objects, double values are created.
For example
hours(days(7.2))
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!