display current time in minutes

조회 수: 4 (최근 30일)
AA
AA 2017년 8월 25일
답변: Guillaume 2017년 8월 25일
hi, how can I display current time as a multiple of 60, meaning 1 o clock is displayed as 60, 2 o clock as 120, 3 o clock as 180 and so on. I know if i type in clock then i get the current time but the further conversion is difficult.
thanks

채택된 답변

Guillaume
Guillaume 2017년 8월 25일
hour(datetime)*60
or
hour(datetime)*60 + minute(datetime)
if you want to add the minutes.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Clocks and Timers에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by