How to reverse a duration?

2 visualizzazioni (ultimi 30 giorni)
Martin
Martin il 28 Ago 2018
Risposto: Kevin Chng il 28 Ago 2018
e.g. c = minutes(2) gives a duration variable: c = 2 min... How to reverse it and get just an integer of 2 ?

Risposta accettata

Stephan
Stephan il 28 Ago 2018
Modificato: Stephan il 28 Ago 2018
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

Più risposte (1)

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

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by