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