Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Group: Time and Date functions
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

Example:

yr = 1970 + (1:10)
t  = settime(yr)
ts = dayofweek(t)
ts
Result:

Contents of ts
[ 1,] "Fri" 
[ 2,] "Sat" 
[ 3,] "Mon" 
[ 4,] "Tue" 
[ 5,] "Wed" 
[ 6,] "Thu" 
[ 7,] "Sat" 
[ 8,] "Sun" 
[ 9,] "Mon" 
[10,] "Tue" 

Group: Time and Date functions
Topic: Time as string output
See also: year month dayofmonth hour minute second

Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

(C) MD*TECH Method and Data Technologies, 17.8.2000