| MATLAB Functions | Help Desk |
weekday
Day of the week
[N,S] = weekday(D)
[N,S] = weekday(D)
returns the day of the week in numeric (N) and string (S) form for each element of a serial date number array or date string. The days of the week are assigned these numbers and abbreviations: |
|---|
[n,s] = weekday(728647)or
[n,s] = weekday('19-Dec-1994')
returns n = 2 and s = Mon.
datenum Serial date number
datevec Date components
eomday End of month