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 nmonth ndayofmonth ndayofweek nminute nsecond

Function: nhour
Description: returns the hour as a number (0-23)

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

Example:



yr = 1970 + (1:10)

t  = settime(yr)

ts = nhour(t)

ts

Result:



Contents of ts

[ 1,]        0 

[ 2,]        0 

[ 3,]        0 

[ 4,]        0 

[ 5,]        0 

[ 6,]        0 

[ 7,]        0 

[ 8,]        0 

[ 9,]        0 

[10,]        0 


Group: Handling of time
Topic: Time as numerical output
See also: nyear nmonth ndayofmonth ndayofweek nminute nsecond

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, 21.9.2000