%% Cumulative Minimum Values in Vector
% Find the cumulative minima of a 1-by-10 vector of random integers.

v = randi([0,10],1,10)

%

M = cummin(v)

% Copyright 2012 The MathWorks, Inc.