How to get millisecond from time display

36 visualizaciones (últimos 30 días)
Joel Sande
Joel Sande el 18 de Abr. de 2016
Editada: Joel Sande el 19 de Abr. de 2016
Hi everyone, I want to get millisecond value displayed. Is there another additional function that allow me do that ?
time = fix(clock);
>> disp(time)
the output is : 2016 4 18 16 40 25
I also want another number ( m ) at the right for milliseconds. Does not necessarily need to be an integer. Thanks
2016 4 18 16 40 25 m

Respuesta aceptada

Azzi Abdelmalek
Azzi Abdelmalek el 18 de Abr. de 2016
Editada: Azzi Abdelmalek el 18 de Abr. de 2016
datestr(clock,'YYYY/mm/dd HH:MM:SS:FFF')
  1 comentario
Joel Sande
Joel Sande el 19 de Abr. de 2016
Editada: Joel Sande el 19 de Abr. de 2016
Thanks !! Excellent :)

Iniciar sesión para comentar.

Más respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by