Be the first to rate this file! 2 Downloads (last 30 days) File Size: 1.8 KB File ID: #4299

timestr

by Scott Hirsch

 

19 Dec 2003 (Updated 06 Jan 2010)

String representation of time in HH:MM:SS.SSSS format.

| Watch this File

File Information
Description

TIMESTR(D) converts D, a serial date number (as returned by DATENUM) into a time string with the format H:MM:SS.SSSS.
 
TIMESTR(D,precision) uses precision values to the right of the decimal.

Use TIMESTR instead of DATESTR when you want fractional seconds precision, and don't care about the day.

See also TIMETICK for formatting tick labels the same way.

MATLAB release MATLAB 6.5 (R13)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Updates
06 Jan 2010

Updated copyright.

Tag Activity for this File
Tag Applied By Date/Time
strings Scott Hirsch 22 Oct 2008 07:11:31
time Scott Hirsch 22 Oct 2008 07:11:31
second Scott Hirsch 22 Oct 2008 07:11:31
seconds Scott Hirsch 22 Oct 2008 07:11:31
milisecond Scott Hirsch 22 Oct 2008 07:11:31
microsecond Scott Hirsch 22 Oct 2008 07:11:31
miliseconds Scott Hirsch 22 Oct 2008 07:11:31

Contact us at files@mathworks.com