Splitting time into hours : minutes : seconds from a fractional value.
11 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
WASIM ASHRAF
el 19 de Abr. de 2021
Comentada: WASIM ASHRAF
el 21 de Abr. de 2021
Hello Everyone,
Can anyone help me for converting a fractional value in the time format?
e.g. 15.76 = HH:MM:SS format.
Respuesta aceptada
Stephan
el 19 de Abr. de 2021
I guess 15.76 means hours in decimal numbers:
[h,m,s] = hms(hours(15.76))
d = duration(h,m,s)
gives:
h =
15
m =
45
s =
36
d =
duration
15:45:36
Más respuestas (0)
Ver también
Categorías
Más información sobre Data Type Conversion en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!