How can I convert the time to hours,minutes and seconds using matlab?
조회 수: 7 (최근 30일)
이전 댓글 표시
tic;
%program code
t=toc;
In what format the time t is displayed. How can I convert and display that time to hours,minutes and seconds?
댓글 수: 0
채택된 답변
Star Strider
2015년 9월 5일
One possibility:
t_hms = datevec(t./(60*60*24)) % Express ‘t’ As Fraction Of A Day, Then Use ‘datevec’ To Convert
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Dates and Time에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!