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