seconds
Duration in seconds
Syntax
S = seconds(X)
Description
S = seconds(
returns an array of seconds equivalent to the values inX
)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
.
Theseconds
function converts betweenduration
anddouble
values. To display a duration in units of seconds, set itsFormat
property to's'
.
Examples
Input Arguments
Extended Capabilities
See Also
Introduced in R2014b
Was this topic helpful?