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 日

0 投票

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 日

0 投票

c = minutes(2) minutes(c)
it will give you back the integer....

カテゴリ

製品

質問済み:

2018 年 8 月 28 日

回答済み:

2018 年 8 月 28 日

Community Treasure Hunt

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

Start Hunting!

Translated by