duration.length
duration: N = length (D)
Length of a duration vector.
N = length (D) returns the size of the longest dimension of the duration array D, unless any of its dimensions has zero length, in which case length (D) returns 0.
N = length (D)
length (D)
Source Code: duration