Return the cumulative minimum values along dimension dim.
If dim is unspecified it defaults to column-wise operation. For example:
cummin ([5 4 6 2 3 1]) ⇒ 5 4 4 2 2 1
If called with two output arguments the index of the minimum value is also returned.
[w, iw] = cummin ([5 4 6 2 3 1]) ⇒ w = 5 4 4 2 2 1 iw = 1 2 2 4 4 6
See also: cummax, min, max.
Package: octave