Does anyone know to convert clock time into decimal time?
조회 수: 2 (최근 30일)
이전 댓글 표시
Exampler of the data 845 is 8:45 and I want it 875 ( decimal time).
댓글 수: 0
답변 (2개)
Star Strider
2016년 9월 8일
See if this does what you want:
t_d = @(t) (fix(t/100) + rem(t,100)/60)*100; % Anonymous Function
t_hm = 845; % Time To Be ‘Converted’
out = t_d(t_hm) % Desired Result
out =
875
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Data Type Conversion에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!