How to reverse a duration?

2 ビュー (過去 30 日間)
Martin
Martin 2018 年 8 月 28 日
回答済み: Kevin Chng 2018 年 8 月 28 日
e.g. c = minutes(2) gives a duration variable: c = 2 min... How to reverse it and get just an integer of 2 ?

採用された回答

Stephan
Stephan 2018 年 8 月 28 日
編集済み: Stephan 2018 年 8 月 28 日
Hi,
doing the same with a duration gives a double:
a = minutes(2)
whos a
b = minutes(a)
whos b
See also here:
Best regards
Stephan
  1 件のコメント
Martin
Martin 2018 年 8 月 28 日
that was pretty simple lol thanks

サインインしてコメントする。

その他の回答 (1 件)

Kevin Chng
Kevin Chng 2018 年 8 月 28 日
c = minutes(2) minutes(c)
it will give you back the integer....

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by