필터 지우기
필터 지우기

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?

채택된 답변

Star Strider
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 CenterFile Exchange에서 Dates and Time에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by