%% Convert Matrix
% Create a numeric matrix with three columns. The columns represent hours, minutes, and seconds respectively.

X = [12 17 54;9 32 3]

%
% Convert the matrix to a duration array.

D = duration(X)

% Copyright 2012 The MathWorks, Inc.