duration.std
duration: S = std (D)
duration: S = std (D, w)
duration: S = std (D, w, dim)
duration: S = std (D, w, vecdim)
duration: S = std (D, w, 'all')
duration: S = std (…, nanflag)
duration: [S, M] = std (…)
Compute the standard deviation of a duration array.
This method overloads the core std function for duration arrays.
The functionality is identical to core std function.
Type help std for more information.
Source Code: duration
std returns the standard deviation of the durations, itself a duration.
d = hours ([1, 2, 3, 4, 5])
d =
1x5 duration array
1 hr 2 hr 3 hr 4 hr 5 hr
std (d)
ans = duration 1.58114 hr