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
Martin
Martin 2018년 8월 28일
that was pretty simple lol thanks

댓글을 달려면 로그인하십시오.

추가 답변 (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