Cumulative minimum
M = cummin(A) returns the cumulative minimum of the arguments of A. The dimension of M is same as the dimension of A. If A is a 2D matrix, the operation is performed along the columns. For a hypermatrix, the operation is performed along the first non-zero dimension M = cummin(A,dim) The operation is performed along the dimension specified by dim M = cummin(_,direction) direction specifies as the direction of operation