Borrar filtros
Borrar filtros

How can I convert the time to hours,minutes and seconds using matlab?

7 visualizaciones (últimos 30 días)
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?

Respuesta aceptada

Star Strider
Star Strider el 5 de Sept. de 2015
One possibility:
t_hms = datevec(t./(60*60*24)) % Express ‘t’ As Fraction Of A Day, Then Use ‘datevec’ To Convert

Más respuestas (0)

Categorías

Más información sobre Dates and Time en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by