What do you want that scalar to be? How manyyears,days,hours,minutes,seconds, ormilliseconds thatduration represents? There arefunctions for each of those. In this context you're probably looking forseconds. IfS = seconds(X) and "X is a duration array, then S is a double array with each element equal to the number of seconds in the corresponding element of X."
Best Answer