function min
Returns the minimum value of an array or the minimum of two real numbers. Undefined values (INF and NaN) are ignored.
Syntax
result = min(X [, ignore] [,/x | /y | /z | /xy | /xz | /yz])
result = min(a, b)
Arguments
X: | A matrix. |
ignore: | An optional value which should be ignored. |
a: | A real number. |
b: | A real number |
Switches
/x: | Calculate the minimum along the first axis |
/y: | Calculate the minimum along the second axis |
/z: | Calculate the minimum along the third axis |
/xy: | Calculate the minimum along the first and second axes |
/xz: | Calculate the minimum along the first and third axes |
/yz: | Calculate the minimum along the second and third axes |
Examples
To get a 1D vector of the minima of all slices along a 3D cube:
result = min(cube, /xy)
See also
function max
function avg
function total
function median
function stddev
function meddev
function variance