duration.bounds
duration: [s, l] = bounds (D)
duration: [s, l] = bounds (D, dim)
duration: [s, l] = bounds (D, vecdim)
duration: [s, l] = bounds (D, 'all')
duration: [s, l] = bounds (…, nanflag)
Return the smallest and largest values of a duration array.
This method is a specialization of the core bounds function for
duration arrays. The functionality is identical to core bounds
function. Type help bounds for more information.
Source Code: duration
bounds returns the smallest and largest durations in one call.
d = hours ([2, 5, 3, 9])
d =
1x4 duration array
2 hr 5 hr 3 hr 9 hr
[lo, hi] = bounds (d); [lo, hi]
ans =
1x2 duration array
2 hr 9 hr