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