Unable to comprehend "time" function output
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
VBBV
el 9 de Feb. de 2024
d = caldays(8:10) + hours(1.2345)
t = time(d) % this output
Is this output returning the difference between time components of calenderDuration function or only time duration between time values in the array ? can anyone tell more about this output
0 comentarios
Respuesta aceptada
Stephen23
el 9 de Feb. de 2024
Editada: Stephen23
el 9 de Feb. de 2024
"Is this output returning the difference between time components of calenderDuration function or only time duration between time values in the array "
Neither, there are absolutely no differences involved.
Exactly as the TIME documentation states, it returns the time component of calendar duration objects.
In pseudo-nomenclature, if you have this CALENDARDURATION array:
99 days 12h 34m 56s789
then TIME returns the time part only (as a DURATION array):
12h 34m 56s789
2 comentarios
Stephen23
el 9 de Feb. de 2024
If differences were involved this would not work:
d = caldays(8) + hours(1.2345)
t = time(d)
t.Format = "hh:mm:ss.SSS"
Más respuestas (0)
Ver también
Categorías
Más información sobre Calendar 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!