How to get millisecond from time display

조회 수: 36 (최근 30일)
Joel Sande
Joel Sande 2016년 4월 18일
편집: Joel Sande 2016년 4월 19일
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

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2016년 4월 18일
편집: Azzi Abdelmalek 2016년 4월 18일
datestr(clock,'YYYY/mm/dd HH:MM:SS:FFF')
  댓글 수: 1
Joel Sande
Joel Sande 2016년 4월 19일
편집: Joel Sande 2016년 4월 19일
Thanks !! Excellent :)

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Sources에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by