How to get millisecond from time display

38 Ansichten (letzte 30 Tage)
Joel Sande
Joel Sande am 18 Apr. 2016
Bearbeitet: Joel Sande am 19 Apr. 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

Akzeptierte Antwort

Azzi Abdelmalek
Azzi Abdelmalek am 18 Apr. 2016
Bearbeitet: Azzi Abdelmalek am 18 Apr. 2016
datestr(clock,'YYYY/mm/dd HH:MM:SS:FFF')

Weitere Antworten (0)

Kategorien

Mehr zu Clocks and Timers finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by