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: Handling of time
Topic: Time as string output
See also: month dayofmonth dayofweek hour minute second

Function: year
Description: returns the year as a string

Usage: ts = year(t)
Input:
t n x 1 time vector
Output:
ts n x 1 string array

Example:
yr = 1970 +(1:10)
t  = settime(yr)
ts = year(t)
ts

Result:
Contents of ts

[ 1,] "1971"
[ 2,] "1972"
[ 3,] "1973"
[ 4,] "1974"
[ 5,] "1975"
[ 6,] "1976"
[ 7,] "1977"
[ 8,] "1978"
[ 9,] "1979"



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