##### 22.6.2.38 spmin

— Mapping Function: spmin (x, y, dim)
— Mapping Function: [w, iw] = spmin (x)

> For a vector argument, return the minimum value. For a matrix argument, return the minimum value from each column, as a row vector, or over the dimension dim if defined. For two matrices (or a matrix and scalar), return the pair-wise minimum. Thus,

>               min (min (x))

> returns the smallest element of x, and

>               min (2:5, pi)
>                   =>  2.0000  3.0000  3.1416  3.1416

> compares each element of the range `2:5` with `pi`, and returns a row vector of the minimum values.

> For complex arguments, the magnitude of the elements are used for comparison.

> If called with one input and two output arguments, `min` also returns the first index of the minimum value(s). Thus,

>               [x, ix] = min ([1, 3, 0, 2, 5])
>                   =>  x = 0
>                       ix = 3