| Financial Toolbox | ![]() |
Syntax
Description
[DayNum, DayString] = weekday(Date)
returns the day of the week in numeric and string form given the date as a serial date number or date string. The days of the week have these values.
| DayNum |
DayString |
| 1 |
Sun |
| 2 |
Mon |
| 3 |
Tue |
| 4 |
Wed |
| 5 |
Thu |
| 6 |
Fri |
| 7 |
Sat |
| Note This function now ships with basic MATLAB. It originally shipped only with the Financial Toolbox. This description remains here for your convenience. |
Examples
See Also
datenum, datestr, datevec, day
| ugarchsim | wrkdydif | ![]() |