FUNCTION REFERENCE
weekday
Day of the week.
Day of the week.
Syntax
n = weekday(D)Syntax
[n, s] = weekday(D)Syntax
[n, s] = weekday(D, 'long')n is 1 for Sunday to 7 for Saturday, one per serial date number (the shape of
D) or per row of date text. s holds the day names, three letters or in full
with 'long', one row per date.
Example
[n, s] = weekday(736390) % n = 3, s = 'Tue'Differences from MATLAB: none known.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.