%% Convert Duration Array to Character Array
% Convert from a duration array to char. For more information related to converting from common data types to char see Convert Between Datetime Arrays, Numbers, and Text
% Create a duration array.

D = hours(23:25) + minutes(8) + seconds(1.2345)

%
% Convert D to a character array.

C = char(D)

% C is a character array that represents one duration value per row.
%
% Specify the format of the duration values represented by C.

C = char(D,'hh:mm')

% Copyright 2015 The MathWorks, Inc.