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 numerical output
See also: nyear ndayofmonth ndayofweek nhour nminute nsecond

Function: nmonth
Description: returns the month as a number

Usage: tn = nmonth(t)
Input:
t n x 1 time vector
Output:
tn n x 1 array

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

Result:
Contents of ts

[ 1,]        1
[ 2,]        1
[ 3,]        1
[ 4,]        1
[ 5,]        1
[ 6,]        1
[ 7,]        1
[ 8,]        1
[ 9,]        1



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