MATLAB Function Reference Previous page   Next Page

Display calendar for specified month



c = calendar returns a 6-by-7 matrix containing a calendar for the current month. The calendar runs Sunday (first column) to Saturday.

c = calendar(d), where d is a serial date number or a date string, returns a calendar for the specified month.

c = calendar(y, m), where y and m are integers, returns a calendar for the specified month of the specified year.


The command

reveals that the Space Age began on a Friday (on October 4, 1957, when Sputnik 1 was launched).

See Also


Previous page  bvpval camdolly Next page

© 1994-2005 The MathWorks, Inc.