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일

0 개 추천

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일

0 개 추천

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

카테고리

도움말 센터File Exchange에서 Logical에 대해 자세히 알아보기

제품

질문:

2018년 8월 28일

답변:

2018년 8월 28일

Community Treasure Hunt

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

Start Hunting!

Translated by