23.12.2012 Views

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

2calendar<br />

Purpose Calendar<br />

Syntax c = calendar<br />

c = calendar(d)<br />

c = calendar(y,m)<br />

calendar(...)<br />

calendar<br />

Description c = calendar returns a 6-by-7 matrix containing a calendar for the current<br />

month. The calendar runs Sunday (first column) to Saturday.<br />

Examples The command:<br />

See Also datenum<br />

c = calendar(d), where d is a serial date number or a date string, returns a<br />

calendar for the specified month.<br />

c = calendar(y,m), where y and m are integers, returns a calendar for the<br />

specified month of the specified year.<br />

calendar(...) displays the calendar on the screen.<br />

calendar(1957,10)<br />

reveals that the Space Age began on a Friday (on October 4, 1957, when<br />

Sputnik 1 was launched).<br />

Oct 1957<br />

S M Tu W Th F S<br />

0 0 1 2 3 4 5<br />

6 7 8 9 10 11 12<br />

13 14 15 16 17 18 19<br />

20 21 22 23 24 25 26<br />

27 28 29 30 31 0 0<br />

0 0 0 0 0 0 0<br />

2-187

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

Saved successfully!

Ooh no, something went wrong!