MATLAB Function Reference
  Go to function:
    Search    Help Desk 
calendar    Examples   See Also

Calendar

Syntax

Description

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.

calendar(...) displays the calendar on the screen.

Examples

The command:

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

See Also

datenum     Serial date number



[ Previous | Help Desk | Next ]