23.06.2015 Views

MATLAB Programming

MATLAB Programming

MATLAB Programming

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Dates and Times<br />

dateform Format Description<br />

0 01-Mar-1996 15:45:17 day-month-year<br />

hour:minute:second<br />

1 01-Mar-1996 day-month-year<br />

2 03/01/96 month/day/year<br />

3 Mar month, three letters<br />

4 M month, single letter<br />

5 3 month<br />

6 03/01 month/day<br />

7 1 day of month<br />

8 Wed day of week, three letters<br />

9 W day of week, single letter<br />

10 1996 year, four digits<br />

11 96 year, two digits<br />

12 Mar96 month year<br />

13 15:45:17 hour:minute:second<br />

14 03:45:17 PM hour:minute:second AM or PM<br />

15 15:45 hour:minute<br />

16 03:45 PM hour:minute AM or PM<br />

17 Q1-96 calendar quarter-year<br />

18 Q1 calendar quarter<br />

Converting Output Format with datestr<br />

Here are some examples of converting the date March 1, 1996 to various<br />

forms using the datestr function:<br />

d = '01-Mar-1999'<br />

d =<br />

01-Mar-1999<br />

2-71

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!