Programming |
|
Function Summary
MATLAB provides functions for time and date handling. These functions are in a directory called timefun
in the MATLAB Toolbox:
- Current Date and Time Functions
- Conversion Functions
- Utility Functions
- Timing Measurement Functions
Current Date and Time Functions
Function
|
Description
|
clock
|
Return the current date and time as a date vector.
|
date
|
Return the current date as date string.
|
now
|
Return the current date and time as serial date number.
|
Conversion Functions
Function
|
Description
|
datenum
|
Convert to a serial date number.
|
datestr
|
Convert to a string representation of the date.
|
datevec
|
Convert to a date vector.
|
Utility Functions
Function
|
Description
|
addtodate
|
Modify a date number by field.
|
calendar
|
Return a matrix representing a calendar.
|
datetick
|
Label axis tick lines with dates.
|
eomday
|
Return the last day of a year and month.
|
weekday
|
Return the current day of the week.
|
Timing Measurement Functions
Function
|
Description
|
cputime
|
Return the total CPU time used by MATLAB since it was started.
|
etime
|
Return the time elapsed between two date vectors.
|
tic , toc
|
Measure the time elapsed between invoking tic and toc .
|
| Current Date and Time | | Structures | |
© 1994-2005 The MathWorks, Inc.