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

X = minutes(2) + seconds(1:3)

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

MS = milliseconds(X)

% MS is a double array.
% Copyright 2012 The MathWorks, Inc.