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

timestr

by Scott Hirsch

 

19 Dec 2003 (Updated 06 Jan 2010)

Code covered by the BSD License  

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

Download Now | 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)
Zip File Content  
Other Files license.txt,
timestr.m
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
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com