e.g. c = minutes(2) gives a duration variable: c = 2 min... How to reverse it and get just an integer of 2 ?

 Akzeptierte Antwort

Stephan
Stephan am 28 Aug. 2018
Bearbeitet: Stephan am 28 Aug. 2018

0 Stimmen

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

Weitere Antworten (1)

Kevin Chng
Kevin Chng am 28 Aug. 2018

0 Stimmen

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

Produkte

Gefragt:

am 28 Aug. 2018

Beantwortet:

am 28 Aug. 2018

Community Treasure Hunt

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

Start Hunting!

Translated by