How to reverse a duration?

3 vues (au cours des 30 derniers jours)
Martin
Martin le 28 Août 2018
e.g. c = minutes(2) gives a duration variable: c = 2 min... How to reverse it and get just an integer of 2 ?

Réponse acceptée

Stephan
Stephan le 28 Août 2018
Modifié(e) : Stephan le 28 Août 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
  1 commentaire
Martin
Martin le 28 Août 2018
that was pretty simple lol thanks

Connectez-vous pour commenter.

Plus de réponses (1)

Kevin Chng
Kevin Chng le 28 Août 2018
c = minutes(2) minutes(c)
it will give you back the integer....

Catégories

En savoir plus sur Logical dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by