Financial Toolbox
  Go to function:
    Search    Help Desk 
weekday    Examples   See Also

Day of the week.

Syntax

Description

[d, w] = weekday(t) returns the day of the week in numeric d and string form w given a serial date number or date string t. The days of the week have these values:

Note:
This function now ships with basic MATLAB. It originally shipped only with the Financial Toolbox, and this description remains here for your convenience.

Example

or

returns

See Also

datenum, datestr, datevec, day

[ Previous | Help Desk | Next ]