hello every one ...i need program for clock..or for e.g need code to write clock

1 view (last 30 days)
my name is Masoud i study M.s mechanic engineer .i don't work for build clock but i use other code to Matlab... thank you for answer this question
  11 Comments
Image Analyst
Image Analyst on 2 Dec 2015
We don't know what you want. Specifically, you said you searched the File Exchange like John suggested but found nothing. But when I search it ( http://www.mathworks.com/matlabcentral/fileexchange/?utf8=%E2%9C%93&term=clock It brought up lots of clocks. Why don't any of them work? What about Thorsten's answer below, or Jan or Shameer's comments above using simple date and time strings and functions built into MATLAB? What's wrong with them?
masoud mansouri
masoud mansouri on 3 Dec 2015
@image analyst ...thank you yes...i wrong page open ...sorry..yes i find ...thanks....i now open and find them....thanks a very lot

Sign in to comment.

Accepted Answer

masoud mansouri
masoud mansouri on 3 Dec 2015
Edited: Stephen23 on 3 Dec 2015

More Answers (1)

Thorsten
Thorsten on 2 Dec 2015
Edited: Thorsten on 2 Dec 2015
To show the current date and time, use
datestr(now)
If you want to measure the time, you can use tic; toc or clock and etime, as explained in
help etime

Tags

Community Treasure Hunt

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

Start Hunting!