%% Cumulative Minimum Values in Matrix Columns
% Find the cumulative minima of the columns of a 3-by-3 matrix.

A = [3 5 2; 1 6 3; 7 8 1]

%

M = cummin(A)

% Copyright 2012 The MathWorks, Inc.