%% Format for Duration Tick Labels
% Create a line plot with duration values along the x-axis. Then, change the format of the tick labels.

t = 0:seconds(30):minutes(3);
y = rand(1,7);
plot(t,y)
xtickformat('mm:ss')

% Copyright 2012 The MathWorks, Inc.