%% Convert Durations to Numeric Array of Days
% Create a duration array.

X = hours(23:20:95) + minutes(45)

%
% Convert each duration in X to a number of days.

D = days(X)

% Copyright 2015 The MathWorks, Inc.