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 个)

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

类别

Help CenterFile Exchange 中查找有关 Logical 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by