hours
Duration in hours
Syntax
Description
H = hours( returns
an array of hours equivalent to the values in X)X.
If
Xis a numeric array, thenHis adurationarray in units of hours.If
Xis adurationarray, thenHis adoublearray with each element equal to the number of hours in the corresponding element ofX.
The hours function converts between duration and double values.
To display a duration in units of hours, set its Format property
to 'h'.
Examples
Input Arguments
Extended Capabilities
Version History
Introduced in R2014b