hours
Duration in hours
Syntax
Description
H = hours(
returns
an array of hours equivalent to the values in X
)X
.
If
X
is a numeric array, thenH
is aduration
array in units of hours.If
X
is aduration
array, thenH
is adouble
array 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