MINFINITE
Name
MINFINITE
Purpose
Calculate the minimum non-zero value of an array.
Category
Math
Calling Sequence
Result = MINFINITE(X, [Index])
Inputs
X: Array
Optional Outputs
Index: The index of the minimum value.
Outputs
A scalar containing the minimum non-zero value of X. If there
are none, returns 0.
Example
IDL> a = [1, 0, 2]
IDL> print, MINFINITE(a, i)
1
IDL> print, i
0
Modification History
Written by: Jeremy Bailin
17 May 2011 Initial writing