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

X = hours(2:10:38) + minutes(30)

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

M = minutes(X)

%
% View the data type of M.

whos M

% Copyright 2015 The MathWorks, Inc.