Group: | Handling of time |
Topic: | Time as string output |
See also: | year month dayofmonth hour minute second |
Function: | dayofweek | |
Description: | returns the day of the week as string. |
Usage: | ts = dayofweek(t) | |
Input: | ||
t | n x 1 time vector | |
Output: | ||
ts | n x 1 string array |
yr = 1970 +(1:10) t = settime(yr) ts = dayofweek(t) ts
Contents of ts [ 1,] "Fri" [ 2,] "Sat" [ 3,] "Mon" [ 4,] "Tue" [ 5,] "Wed" [ 6,] "Thu" [ 7,] "Sat" [ 8,] "Sun" [ 9,] "Mon" [10,] "Tue"